Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor1_3.pin_p.reference.gamma|resistor2_3.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad") translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor1_3.pin_p.reference.gamma|resistor2_3.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009739/0.0009739, allocations: 108.2 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009735/0.0009736, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009664/0.0009665, allocations: 51.89 kB / 300.6 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08131/0.08229, allocations: 49.44 MB / 350.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad): time 0.01387/0.0962, allocations: 13.92 MB / 364 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00774/0.104, allocations: 3.781 MB / 367.8 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001925/0.1059, allocations: 99.75 kB / 367.9 MB, free: 2.527 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1727/0.2787, allocations: 5.557 MB / 373.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004442/0.2831, allocations: 1.52 MB / 374.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002341/0.2855, allocations: 1.054 MB / 376 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006536/0.292, allocations: 6.232 MB / 382.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01484/0.3069, allocations: 13.72 MB / 395.9 MB, free: 2.246 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004746/0.3117, allocations: 3.29 MB / 399.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005975/0.3177, allocations: 3.855 MB / 403.1 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001843/0.3196, allocations: 0.8828 MB / 404 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00242/0.322, allocations: 1.066 MB / 405 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001401/0.3234, allocations: 1.772 MB / 406.8 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003892/0.3273, allocations: 3.572 MB / 410.4 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.3374, allocations: 11.87 MB / 422.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3374, allocations: 0 / 422.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3375, allocations: 0 / 422.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002024/0.3377, allocations: 0 / 422.2 MB, free: 9.816 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.01818/0.3559, allocations: 7.775 MB / 430 MB, free: 2.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.3559, allocations: 12.03 kB / 430 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01842/0.3743, allocations: 2.884 MB / 432.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006811/0.3812, allocations: 3.611 MB / 436.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003123/0.3815, allocations: 482.6 kB / 437 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001159/0.3827, allocations: 0.6244 MB / 437.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01523/0.3979, allocations: 9.309 MB / 446.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001212/0.3981, allocations: 15.89 kB / 446.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005879/0.3987, allocations: 259 kB / 447.2 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002586/0.3989, allocations: 321.4 kB / 447.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01217/0.4111, allocations: 7.954 MB / 455.5 MB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03753/0.4487, allocations: 28.56 MB / 484 MB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01059/0.4593, allocations: 11.68 MB / 495.7 MB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00224/0.4615, allocations: 1.629 MB / 497.3 MB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001871/0.4617, allocations: 131.5 kB / 497.5 MB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/0.4618, allocations: 60.94 kB / 497.5 MB, free: 12.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 5.33e-06/0.4618, allocations: 0 / 497.5 MB, free: 12.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=238): time 0.007501/0.4693, allocations: 4.174 MB / 0.4899 GB, free: 7.898 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.285e-05/0.4694, allocations: 107.1 kB / 0.49 GB, free: 7.773 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002379/0.4718, allocations: 1.899 MB / 0.4919 GB, free: 5.867 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001198/0.4719, allocations: 61.7 kB / 0.492 GB, free: 5.801 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/0.4732, allocations: 2.543 MB / 0.4944 GB, free: 3.238 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005501/0.4738, allocations: 0.8057 MB / 0.4952 GB, free: 2.438 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008572/0.4746, allocations: 0.6637 MB / 0.4959 GB, free: 1.766 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.068e-05/0.4747, allocations: 301.1 kB / 0.4962 GB, free: 1.469 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001888/0.4766, allocations: 1.404 MB / 0.4975 GB, free: 64 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003064/0.4797, allocations: 2.594 MB / 0.5001 GB, free: 12.94 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004855/0.4846, allocations: 4.23 MB / 0.5042 GB, free: 8.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-05/0.4846, allocations: 16 kB / 0.5042 GB, free: 8.164 MB / 430.1 MB Notification: Performance of matching and sorting (n=442) (initialization): time 0.00662/0.4912, allocations: 4.518 MB / 0.5086 GB, free: 3.629 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.89e-05/0.4913, allocations: 24.72 kB / 0.5087 GB, free: 3.605 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-05/0.4913, allocations: 40 kB / 0.5087 GB, free: 3.566 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007726/0.4921, allocations: 317.1 kB / 0.509 GB, free: 3.254 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002603/0.4947, allocations: 0.78 MB / 0.5098 GB, free: 2.473 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005205/0.5, allocations: 5.047 MB / 0.5147 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002981/0.503, allocations: 416 kB / 0.5151 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002328/0.5032, allocations: 164 kB / 0.5152 GB, free: 12.59 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (414): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,22,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003705/0.5069, allocations: 2.187 MB / 0.5174 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004027/0.5073, allocations: 213.5 kB / 0.5176 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005071/0.5124, allocations: 3.185 MB / 0.5207 GB, free: 6.965 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.039e-05/0.5125, allocations: 24 kB / 0.5207 GB, free: 6.941 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/0.5125, allocations: 8 kB / 0.5207 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.391e-05/0.5125, allocations: 11.95 kB / 0.5207 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1809/0.6935, allocations: 11.77 MB / 0.5322 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-05/0.6935, allocations: 18.69 kB / 0.5322 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00167/0.6952, allocations: 437.7 kB / 0.5327 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006475/0.6959, allocations: 276.2 kB / 0.5329 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001406/0.696, allocations: 67.56 kB / 0.533 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00425/0.7003, allocations: 4.982 MB / 0.5379 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-05/0.7003, allocations: 23.92 kB / 0.5379 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006189/0.7065, allocations: 4.996 MB / 0.5428 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009307/0.7074, allocations: 0.5338 MB / 0.5433 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002659/0.7077, allocations: 64.73 kB / 0.5433 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001214/0.7089, allocations: 122 kB / 0.5435 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003303/0.7093, allocations: 203.4 kB / 0.5436 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/0.7094, allocations: 87.62 kB / 0.5437 GB, free: 131.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001725/0.7112, allocations: 1.294 MB / 0.545 GB, free: 131.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.463e-06/0.7112, allocations: 0 / 0.545 GB, free: 131.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003709/0.7149, allocations: 1.432 MB / 0.5464 GB, free: 130.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 62 * Number of states: 2 (voltageSource2.plug_p.reference.gamma,voltageSource1.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (226): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,22,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004126/0.7153, allocations: 220 kB / 0.5466 GB, free: 130.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006696/0.722, allocations: 4.16 MB / 0.5507 GB, free: 129.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.461e-05/0.7221, allocations: 0 / 0.5507 GB, free: 129.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001935/0.724, allocations: 1.697 MB / 0.5523 GB, free: 128.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002707/0.7267, allocations: 0.5073 MB / 0.5528 GB, free: 128.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01195/0.7387, allocations: 10.02 MB / 0.5626 GB, free: 123.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002763/0.7415, allocations: 4.002 MB / 0.5665 GB, free: 121.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0027/0.7442, allocations: 1.195 MB / 0.5677 GB, free: 121.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004702/0.7447, allocations: 193.8 kB / 0.5679 GB, free: 121.6 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/0.7447, allocations: 0 / 0.5679 GB, free: 121.6 MB / 446.1 MB Notification: Performance of Templates: time 0.041/0.7857, allocations: 31.06 MB / 0.5982 GB, free: 92.37 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/UnsymmetricalLoad/UnsymmetricalLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.UnsymmetricalLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches