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.001897/0.001897, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.002117/0.002117, allocations: 193.4 kB / 18 MB, free: 5.172 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.487/1.487, 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.1878/0.1878, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002194/0.002194, allocations: 71.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3804/0.3826, allocations: 58.05 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.005969/0.3886, allocations: 5.383 MB / 0.5089 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005671/0.3943, allocations: 4.156 MB / 0.513 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000517/0.3949, allocations: 15.5 kB / 0.513 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01075/0.4057, allocations: 4.857 MB / 0.5177 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00118/0.4069, allocations: 333.2 kB / 0.518 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007759/0.4077, allocations: 253 kB / 0.5183 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002304/0.41, allocations: 1.558 MB / 0.5198 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007644/0.4108, allocations: 394.8 kB / 0.5202 GB, free: 14.42 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007816/0.4116, allocations: 368.3 kB / 0.5205 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007778/0.4124, allocations: 445.9 kB / 0.5209 GB, free: 14.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.532e-05/0.4125, allocations: 53.31 kB / 0.521 GB, free: 14.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004289/0.4129, allocations: 121.9 kB / 0.5211 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000367/0.4133, allocations: 272.9 kB / 0.5214 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004642/0.4138, allocations: 325.3 kB / 0.5217 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.4151, allocations: 0.7466 MB / 0.5224 GB, free: 13.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.4151, allocations: 0.6094 kB / 0.5224 GB, free: 13.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4151, allocations: 0 / 0.5224 GB, free: 13.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.4151, 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.002021/0.4172, allocations: 0.932 MB / 0.5233 GB, free: 12.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.4172, allocations: 9.125 kB / 0.5233 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001308/0.4174, allocations: 88.55 kB / 0.5234 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005045/0.4179, allocations: 96.5 kB / 0.5235 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.4191, allocations: 0.5599 MB / 0.5241 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.88e-05/0.4191, allocations: 36.33 kB / 0.5241 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.4192, allocations: 51.12 kB / 0.5241 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.4205, allocations: 0.6493 MB / 0.5248 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.808e-05/0.4205, allocations: 5.828 kB / 0.5248 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.436e-05/0.4206, allocations: 16 kB / 0.5248 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000163/0.4207, allocations: 52.8 kB / 0.5248 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000874/0.4216, allocations: 492 kB / 0.5253 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003968/0.4256, allocations: 2.528 MB / 0.5278 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000505/0.4261, allocations: 315.9 kB / 0.5281 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002923/0.4264, allocations: 183.9 kB / 0.5283 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.145e-05/0.4265, allocations: 3.906 kB / 0.5283 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.361e-05/0.4265, allocations: 44.66 kB / 0.5283 GB, free: 9.617 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.414e-06/0.4265, allocations: 0 / 0.5283 GB, free: 9.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002946/0.4295, allocations: 1.648 MB / 0.5299 GB, free: 8.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.255e-05/0.4296, allocations: 106.3 kB / 0.53 GB, free: 8.215 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005662/0.4302, allocations: 427.5 kB / 0.5304 GB, free: 7.953 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.5e-05/0.4302, allocations: 34.89 kB / 0.5305 GB, free: 7.914 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002876/0.4305, allocations: 313.7 kB / 0.5308 GB, free: 7.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.4307, allocations: 134.3 kB / 0.5309 GB, free: 7.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.4309, allocations: 86.39 kB / 0.531 GB, free: 7.465 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002392/0.4311, allocations: 362.8 kB / 0.5313 GB, free: 7.113 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003342/0.4315, allocations: 169.9 kB / 0.5315 GB, free: 7.027 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004609/0.4319, allocations: 303.5 kB / 0.5318 GB, free: 6.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008016/0.4327, allocations: 492.8 kB / 0.5322 GB, free: 6.422 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.4327, allocations: 5.062 kB / 0.5322 GB, free: 6.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001644/0.4344, allocations: 0.7982 MB / 0.533 GB, free: 5.926 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.4344, allocations: 6.469 kB / 0.533 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.4345, allocations: 5.25 kB / 0.533 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006912/0.4351, allocations: 205.4 kB / 0.5332 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003347/0.4355, allocations: 79.36 kB / 0.5333 GB, free: 5.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005831/0.4413, allocations: 4.231 MB / 0.5374 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005559/0.4419, allocations: 16.03 kB / 0.5374 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.635e-05/0.442, allocations: 24.33 kB / 0.5375 GB, free: 2.102 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.0005211/0.4425, allocations: 226.1 kB / 0.5377 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.4427, allocations: 50.3 kB / 0.5377 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/0.4439, allocations: 0.6429 MB / 0.5384 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.4439, allocations: 4.625 kB / 0.5384 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.4439, allocations: 1.281 kB / 0.5384 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.4439, allocations: 5.203 kB / 0.5384 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.446, allocations: 1.189 MB / 0.5395 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.446, allocations: 1.219 kB / 0.5395 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004427/0.4464, allocations: 70.42 kB / 0.5396 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001735/0.4466, allocations: 52.58 kB / 0.5396 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.471e-05/0.4467, allocations: 17.5 kB / 0.5397 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002757/0.4494, allocations: 2.836 MB / 0.5424 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.4495, allocations: 5 kB / 0.5424 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.4508, allocations: 0.9617 MB / 0.5434 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002328/0.451, allocations: 153.2 kB / 0.5435 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.968e-05/0.4511, allocations: 11.91 kB / 0.5435 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.4513, allocations: 12.48 kB / 0.5435 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.401e-05/0.4514, allocations: 32.77 kB / 0.5436 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.4514, allocations: 16.42 kB / 0.5436 GB, free: 12.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003677/0.4518, allocations: 291.5 kB / 0.5439 GB, free: 12.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.557e-06/0.4518, allocations: 0 / 0.5439 GB, free: 12.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000695/0.4525, allocations: 134.3 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.001574/0.4541, allocations: 1.515 MB / 0.5455 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.4555, allocations: 0.7324 MB / 0.5462 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4555, allocations: 0 / 0.5462 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005981/0.4561, allocations: 412.6 kB / 0.5466 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007516/0.4569, allocations: 127 kB / 0.5467 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008085/0.465, allocations: 5.568 MB / 0.5521 GB, free: 5.145 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006339/0.4657, allocations: 0.9405 MB / 0.5531 GB, free: 4.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003365/0.466, allocations: 104.4 kB / 0.5532 GB, free: 4.074 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002887/0.4663, allocations: 199.4 kB / 0.5534 GB, free: 3.879 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4663, allocations: 4 kB / 0.5534 GB, free: 3.875 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04696/0.5133, allocations: 12.18 MB / 0.5653 GB, free: 7.895 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.42, allocations: 9.344 kB / 0.5653 GB, free: 7.891 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