Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.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.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines",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.001603/0.001603, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001945/0.001945, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.5/1.5, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.171/0.171, allocations: 38.05 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 59.91 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4065/0.4078, allocations: 58.06 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.006442/0.4143, allocations: 5.388 MB / 0.5089 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005824/0.4202, allocations: 4.16 MB / 0.513 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005493/0.4208, allocations: 16.12 kB / 0.513 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01168/0.4325, allocations: 4.855 MB / 0.5177 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001456/0.4339, allocations: 346.3 kB / 0.518 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009772/0.435, allocations: 245.8 kB / 0.5183 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002977/0.4379, allocations: 1.563 MB / 0.5198 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007636/0.4387, allocations: 389.6 kB / 0.5202 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006973/0.4394, allocations: 384.1 kB / 0.5205 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007806/0.4402, allocations: 448.2 kB / 0.521 GB, free: 14.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.4404, allocations: 45.38 kB / 0.521 GB, free: 14.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003936/0.4408, allocations: 121.8 kB / 0.5211 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003782/0.4411, allocations: 270.7 kB / 0.5214 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004803/0.4416, allocations: 329.4 kB / 0.5217 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001305/0.4429, allocations: 0.745 MB / 0.5224 GB, free: 13.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.443, allocations: 4 kB / 0.5224 GB, free: 13.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.443, allocations: 2.109 kB / 0.5224 GB, free: 13.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.36e-05/0.443, allocations: 0 / 0.5224 GB, free: 13.49 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002133/0.4451, allocations: 0.9218 MB / 0.5233 GB, free: 12.81 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.4452, allocations: 12.11 kB / 0.5233 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000128/0.4453, allocations: 96.81 kB / 0.5234 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004857/0.4458, allocations: 96.55 kB / 0.5235 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.4472, allocations: 0.5567 MB / 0.5241 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/0.4472, allocations: 42.8 kB / 0.5241 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.4473, allocations: 48.22 kB / 0.5242 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.4485, allocations: 0.6524 MB / 0.5248 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.4485, allocations: 2.062 kB / 0.5248 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.983e-05/0.4486, allocations: 20.34 kB / 0.5248 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001464/0.4487, allocations: 49.61 kB / 0.5249 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008423/0.4496, allocations: 497.8 kB / 0.5253 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004245/0.4538, allocations: 2.527 MB / 0.5278 GB, free: 9.953 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005861/0.4544, allocations: 316.8 kB / 0.5281 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000329/0.4548, allocations: 179.5 kB / 0.5283 GB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.141e-05/0.4548, allocations: 4.875 kB / 0.5283 GB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/0.4549, allocations: 45.23 kB / 0.5283 GB, free: 9.602 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.805e-06/0.4549, allocations: 0 / 0.5283 GB, free: 9.602 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002937/0.4578, allocations: 1.647 MB / 0.5299 GB, free: 8.324 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/0.4579, allocations: 110.7 kB / 0.53 GB, free: 8.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005623/0.4585, allocations: 430.5 kB / 0.5304 GB, free: 7.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.896e-05/0.4585, allocations: 32.02 kB / 0.5305 GB, free: 7.895 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002448/0.4588, allocations: 309.8 kB / 0.5308 GB, free: 7.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.4589, allocations: 126.3 kB / 0.5309 GB, free: 7.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001688/0.4591, allocations: 89.83 kB / 0.531 GB, free: 7.453 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.4593, allocations: 363 kB / 0.5313 GB, free: 7.102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003408/0.4596, allocations: 173.6 kB / 0.5315 GB, free: 7.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004886/0.4601, allocations: 296 kB / 0.5318 GB, free: 6.766 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008538/0.461, allocations: 492.7 kB / 0.5322 GB, free: 6.414 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.461, allocations: 1.375 kB / 0.5322 GB, free: 6.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001604/0.4626, allocations: 0.8007 MB / 0.533 GB, free: 5.918 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.4626, allocations: 6.688 kB / 0.533 GB, free: 5.918 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.4627, allocations: 8.5 kB / 0.533 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006973/0.4634, allocations: 205.8 kB / 0.5332 GB, free: 5.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003488/0.4637, allocations: 71.67 kB / 0.5333 GB, free: 5.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004955/0.4687, allocations: 4.234 MB / 0.5374 GB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003842/0.4691, allocations: 19.77 kB / 0.5375 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-05/0.4692, allocations: 19.5 kB / 0.5375 GB, free: 2.09 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003715/0.4695, allocations: 226.8 kB / 0.5377 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.4696, allocations: 50.34 kB / 0.5377 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/0.4707, allocations: 0.6439 MB / 0.5384 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.4707, allocations: 4.438 kB / 0.5384 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.4707, allocations: 1 kB / 0.5384 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.4707, allocations: 1.062 kB / 0.5384 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001792/0.4725, allocations: 1.188 MB / 0.5395 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.4725, allocations: 1.156 kB / 0.5395 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004441/0.473, allocations: 75.23 kB / 0.5396 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001699/0.4731, allocations: 56.83 kB / 0.5397 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.784e-05/0.4732, allocations: 12.39 kB / 0.5397 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002218/0.4754, allocations: 2.841 MB / 0.5425 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.4754, allocations: 5.375 kB / 0.5425 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.4767, allocations: 0.9556 MB / 0.5434 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002439/0.4769, allocations: 150.2 kB / 0.5435 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.93e-05/0.477, allocations: 12.86 kB / 0.5435 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002634/0.4772, allocations: 8.5 kB / 0.5436 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.4773, allocations: 32.09 kB / 0.5436 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.894e-05/0.4774, allocations: 12.81 kB / 0.5436 GB, free: 12.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003579/0.4777, allocations: 291.1 kB / 0.5439 GB, free: 12.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4777, allocations: 1.406 kB / 0.5439 GB, free: 12.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006987/0.4784, allocations: 137.7 kB / 0.544 GB, free: 12.38 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001424/0.4799, allocations: 1.517 MB / 0.5455 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001395/0.4813, allocations: 0.7328 MB / 0.5462 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.4813, allocations: 0 / 0.5462 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005625/0.4819, allocations: 425.3 kB / 0.5466 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007945/0.4827, allocations: 127.5 kB / 0.5467 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007793/0.4905, allocations: 5.565 MB / 0.5522 GB, free: 5.098 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006538/0.4912, allocations: 0.9405 MB / 0.5531 GB, free: 4.133 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003513/0.4915, allocations: 108.4 kB / 0.5532 GB, free: 4.023 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.4918, allocations: 195.4 kB / 0.5534 GB, free: 3.832 MB / 414.1 MB Notification: Performance of SimCode: time 6.72e-07/0.4918, allocations: 0 / 0.5534 GB, free: 3.832 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05857/0.5504, allocations: 12.18 MB / 0.5653 GB, free: 7.848 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.84, allocations: 6.641 kB / 0.5653 GB, free: 7.844 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches