Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) 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: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 107.9 kB / 17.06 MB, free: 5.82 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.001819/0.001819, allocations: 195.9 kB / 18 MB, free: 4.965 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.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1908/0.1908, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002049/0.002049, allocations: 63.89 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3316, allocations: 58.07 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005569/0.3372, allocations: 4.92 MB / 0.5084 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003038/0.3403, allocations: 2.479 MB / 0.5109 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000366/0.3407, allocations: 9.688 kB / 0.5109 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001201/0.3419, allocations: 443.5 kB / 0.5113 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001254/0.3432, allocations: 0.504 MB / 0.5118 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007088/0.3439, allocations: 281.7 kB / 0.512 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008273/0.3447, allocations: 0.742 MB / 0.5128 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004858/0.3452, allocations: 339 kB / 0.5131 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004545/0.3457, allocations: 314.1 kB / 0.5134 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004385/0.3461, allocations: 323.9 kB / 0.5137 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.421e-05/0.3462, allocations: 36.97 kB / 0.5137 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.3473, allocations: 0.6333 MB / 0.5144 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.3475, allocations: 202.8 kB / 0.5145 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002583/0.3478, allocations: 248.3 kB / 0.5148 GB, free: 368 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001168/0.349, allocations: 0.7643 MB / 0.5155 GB, free: 84 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.349, allocations: 1.406 kB / 0.5155 GB, free: 84 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.349, allocations: 0 / 0.5155 GB, free: 84 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.349, allocations: 0 / 0.5155 GB, free: 84 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001314/0.3503, allocations: 0.7857 MB / 0.5163 GB, free: 15.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.3504, allocations: 14.73 kB / 0.5163 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001106/0.3505, allocations: 88.69 kB / 0.5164 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001673/0.3522, allocations: 206.8 kB / 0.5166 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006829/0.3529, allocations: 371.3 kB / 0.5169 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.3529, allocations: 33.75 kB / 0.517 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.51e-05/0.353, allocations: 40.38 kB / 0.517 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.3543, allocations: 0.6301 MB / 0.5176 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.602e-05/0.3543, allocations: 2.172 kB / 0.5176 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.517e-05/0.3544, allocations: 16.06 kB / 0.5177 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.786e-05/0.3544, allocations: 36.33 kB / 0.5177 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000981/0.3554, allocations: 0.6072 MB / 0.5183 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003579/0.359, allocations: 2.255 MB / 0.5205 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007122/0.3598, allocations: 498.8 kB / 0.521 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003364/0.3601, allocations: 236.2 kB / 0.5212 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.941e-05/0.3602, allocations: 5.484 kB / 0.5212 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/0.3602, allocations: 41.69 kB / 0.5212 GB, free: 12.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.785e-06/0.3602, allocations: 4 kB / 0.5212 GB, free: 12.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003591/0.3638, allocations: 1.708 MB / 0.5229 GB, free: 11.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.575e-05/0.3639, allocations: 90.97 kB / 0.523 GB, free: 11.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00032/0.3642, allocations: 279.4 kB / 0.5233 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.259e-05/0.3643, allocations: 36.58 kB / 0.5233 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.3644, allocations: 232 kB / 0.5235 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.3646, allocations: 158.2 kB / 0.5237 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3647, allocations: 86.89 kB / 0.5237 GB, free: 11.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3649, allocations: 346.3 kB / 0.5241 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.3652, allocations: 179.3 kB / 0.5242 GB, free: 10.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003593/0.3656, allocations: 296.4 kB / 0.5245 GB, free: 10.53 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006915/0.3663, allocations: 0.504 MB / 0.525 GB, free: 10.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3663, allocations: 1.281 kB / 0.525 GB, free: 10.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001211/0.3675, allocations: 0.6813 MB / 0.5257 GB, free: 9.953 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3675, allocations: 6.031 kB / 0.5257 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.3675, allocations: 3.594 kB / 0.5257 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005871/0.3681, allocations: 179.9 kB / 0.5259 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003585/0.3685, allocations: 90.88 kB / 0.526 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003761/0.3723, allocations: 2.791 MB / 0.5287 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003474/0.3726, allocations: 17.28 kB / 0.5287 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.392e-05/0.3727, allocations: 20.25 kB / 0.5287 GB, free: 7.875 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002903/0.373, allocations: 201.5 kB / 0.5289 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.89e-05/0.3731, allocations: 42.31 kB / 0.5289 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/0.3743, allocations: 0.6319 MB / 0.5296 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3743, allocations: 4.656 kB / 0.5296 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.3743, allocations: 10.11 kB / 0.5296 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3744, allocations: 1.875 kB / 0.5296 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.3766, allocations: 1.344 MB / 0.5309 GB, free: 6.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.3767, allocations: 1.344 kB / 0.5309 GB, free: 6.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003608/0.377, allocations: 86.03 kB / 0.531 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004776/0.3775, allocations: 145.7 kB / 0.5311 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.669e-05/0.3776, allocations: 9.734 kB / 0.5311 GB, free: 6.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003236/0.3808, allocations: 2.568 MB / 0.5336 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3808, allocations: 1.375 kB / 0.5336 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.3824, allocations: 0.9592 MB / 0.5346 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.3826, allocations: 111.9 kB / 0.5347 GB, free: 3.957 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.035e-05/0.3827, allocations: 15.38 kB / 0.5347 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.3829, allocations: 17.72 kB / 0.5347 GB, free: 3.934 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.21e-05/0.383, allocations: 34.95 kB / 0.5347 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.412e-05/0.383, allocations: 14.31 kB / 0.5348 GB, free: 3.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002294/0.3833, allocations: 199.2 kB / 0.5349 GB, free: 3.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3833, allocations: 0 / 0.5349 GB, free: 3.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007118/0.384, allocations: 139 kB / 0.5351 GB, free: 3.762 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001765/0.3858, allocations: 1.501 MB / 0.5365 GB, free: 2.648 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.3871, allocations: 0.6686 MB / 0.5372 GB, free: 2.273 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3871, allocations: 0.9062 kB / 0.5372 GB, free: 2.273 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007129/0.3878, allocations: 433.1 kB / 0.5376 GB, free: 2.004 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/0.3884, allocations: 67.88 kB / 0.5377 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006339/0.3947, allocations: 4.479 MB / 0.542 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007255/0.3955, allocations: 0.8754 MB / 0.5429 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002772/0.3958, allocations: 72.86 kB / 0.543 GB, free: 13.99 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.396, allocations: 153.7 kB / 0.5431 GB, free: 13.86 MB / 414.1 MB Notification: Performance of SimCode: time 7.81e-07/0.396, allocations: 0 / 0.5431 GB, free: 13.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07021/0.4663, allocations: 9.876 MB / 0.5528 GB, free: 5.316 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.06, allocations: 11.5 kB / 0.5528 GB, free: 5.309 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches