Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMcharacteristic",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.001523/0.001523, allocations: 114 kB / 17.06 MB, free: 6.086 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.001846/0.001846, allocations: 195 kB / 17.99 MB, free: 5.18 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.495/1.495, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1875/0.1875, allocations: 38.05 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002324/0.002325, allocations: 59.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3869/0.3893, allocations: 58.06 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005733/0.3951, allocations: 5.229 MB / 0.5087 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005341/0.4004, allocations: 3.961 MB / 0.5126 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000385/0.4009, allocations: 18.75 kB / 0.5126 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009579/0.4105, allocations: 4.794 MB / 0.5173 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001011/0.4115, allocations: 338.4 kB / 0.5176 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006015/0.4121, allocations: 209.9 kB / 0.5178 GB, free: 15.37 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002046/0.4142, allocations: 1.556 MB / 0.5193 GB, free: 14.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009359/0.4151, allocations: 0.5962 MB / 0.5199 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006414/0.4158, allocations: 373.2 kB / 0.5203 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007854/0.4166, allocations: 415.4 kB / 0.5207 GB, free: 14.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001356/0.4167, allocations: 55 kB / 0.5207 GB, free: 14.21 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002653/0.417, allocations: 70.64 kB / 0.5208 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003957/0.4174, allocations: 250.7 kB / 0.521 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006148/0.418, allocations: 322.7 kB / 0.5213 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.4191, allocations: 0.8171 MB / 0.5221 GB, free: 13.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.4191, allocations: 3.938 kB / 0.5221 GB, free: 13.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4192, allocations: 0 / 0.5221 GB, free: 13.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.189e-05/0.4192, allocations: 1.5 kB / 0.5221 GB, free: 13.59 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.00188/0.4211, allocations: 0.8759 MB / 0.523 GB, free: 12.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.4211, allocations: 12.78 kB / 0.523 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.4212, allocations: 92.53 kB / 0.5231 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002778/0.4215, allocations: 72.67 kB / 0.5232 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.4226, allocations: 0.5693 MB / 0.5237 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.057e-05/0.4227, allocations: 31.16 kB / 0.5237 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.613e-05/0.4228, allocations: 49.98 kB / 0.5238 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.424, allocations: 0.626 MB / 0.5244 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.424, allocations: 7.547 kB / 0.5244 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.009e-05/0.4241, allocations: 15.44 kB / 0.5244 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001297/0.4242, allocations: 51.62 kB / 0.5245 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000789/0.425, allocations: 466.5 kB / 0.5249 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003253/0.4283, allocations: 2.51 MB / 0.5274 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004481/0.4287, allocations: 285.4 kB / 0.5276 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002002/0.4289, allocations: 145.1 kB / 0.5278 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.429, allocations: 8.031 kB / 0.5278 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.429, allocations: 38.28 kB / 0.5278 GB, free: 9.793 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 1.954e-06/0.429, allocations: 0 / 0.5278 GB, free: 9.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002907/0.4319, allocations: 1.546 MB / 0.5293 GB, free: 8.633 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.432, allocations: 85.14 kB / 0.5294 GB, free: 8.535 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005323/0.4325, allocations: 416.6 kB / 0.5298 GB, free: 8.273 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.065e-05/0.4326, allocations: 32.55 kB / 0.5298 GB, free: 8.238 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000229/0.4328, allocations: 298.9 kB / 0.5301 GB, free: 7.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.4329, allocations: 126.2 kB / 0.5303 GB, free: 7.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.4331, allocations: 81.69 kB / 0.5303 GB, free: 7.809 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.4333, allocations: 357.9 kB / 0.5307 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002442/0.4335, allocations: 135.2 kB / 0.5308 GB, free: 7.395 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003543/0.4339, allocations: 281.4 kB / 0.5311 GB, free: 7.133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006446/0.4346, allocations: 447.7 kB / 0.5315 GB, free: 6.789 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.4346, allocations: 2.219 kB / 0.5315 GB, free: 6.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001226/0.4358, allocations: 0.6805 MB / 0.5322 GB, free: 6.355 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.4358, allocations: 6.5 kB / 0.5322 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.4359, allocations: 9.156 kB / 0.5322 GB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000477/0.4363, allocations: 147 kB / 0.5323 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003146/0.4367, allocations: 77.12 kB / 0.5324 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003435/0.4401, allocations: 3.684 MB / 0.536 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000334/0.4405, allocations: 15.47 kB / 0.536 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.483e-05/0.4405, allocations: 18.97 kB / 0.536 GB, free: 2.82 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (42): * Single equations (assignments): 40 * 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,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003757/0.4409, allocations: 242.6 kB / 0.5363 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.518e-05/0.441, allocations: 51.97 kB / 0.5363 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/0.4421, allocations: 0.5643 MB / 0.5369 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.4421, allocations: 3.594 kB / 0.5369 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0008479/0.443, allocations: 488.4 kB / 0.5373 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/0.443, allocations: 3.984 kB / 0.5373 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002407/0.4454, allocations: 0.9926 MB / 0.5383 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.4454, allocations: 5.312 kB / 0.5383 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.4457, allocations: 47.22 kB / 0.5383 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003726/0.4461, allocations: 86.09 kB / 0.5384 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.776e-05/0.4462, allocations: 10.31 kB / 0.5384 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002557/0.4487, allocations: 2.025 MB / 0.5404 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4488, allocations: 1.297 kB / 0.5404 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.4498, allocations: 0.6518 MB / 0.5411 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000232/0.4501, allocations: 138.8 kB / 0.5412 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.069e-05/0.4502, allocations: 8.094 kB / 0.5412 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.4504, allocations: 6.219 kB / 0.5412 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.178e-05/0.4505, allocations: 23.31 kB / 0.5412 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.4505, allocations: 14.77 kB / 0.5412 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004084/0.4509, allocations: 302.3 kB / 0.5415 GB, free: 14.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4509, allocations: 0 / 0.5415 GB, free: 14.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007307/0.4516, allocations: 123.2 kB / 0.5416 GB, free: 14.42 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.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 (22): * Single equations (assignments): 20 * 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): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001304/0.453, allocations: 1.194 MB / 0.5428 GB, free: 13.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.4543, allocations: 0.6224 MB / 0.5434 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4543, allocations: 0 / 0.5434 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004688/0.4548, allocations: 299.1 kB / 0.5437 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007022/0.4555, allocations: 119.8 kB / 0.5438 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007676/0.4632, allocations: 4.774 MB / 0.5485 GB, free: 9.105 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006603/0.4639, allocations: 0.9167 MB / 0.5494 GB, free: 8.164 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003003/0.4642, allocations: 76.31 kB / 0.5494 GB, free: 8.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002423/0.4645, allocations: 179.4 kB / 0.5496 GB, free: 7.914 MB / 414.1 MB Notification: Performance of SimCode: time 4.148e-06/0.4645, allocations: 0 / 0.5496 GB, free: 7.914 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05168/0.5162, allocations: 10.46 MB / 0.5598 GB, free: 13.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/12, allocations: 21.09 kB / 0.5598 GB, free: 13.63 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_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_Drives_ASMcharacteristic.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches