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.001136/0.001136, 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.001274/0.001275, 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.457/1.457, 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.2501/0.2501, allocations: 38.05 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002541/0.002541, allocations: 63.91 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4334/0.4359, allocations: 58.07 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.007689/0.4437, allocations: 5.228 MB / 0.5087 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006235/0.4499, allocations: 3.963 MB / 0.5126 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005598/0.4505, allocations: 15.47 kB / 0.5126 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0106/0.4612, allocations: 4.801 MB / 0.5173 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001058/0.4623, allocations: 329.9 kB / 0.5176 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006716/0.463, allocations: 216.5 kB / 0.5178 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002532/0.4655, allocations: 1.545 MB / 0.5193 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009738/0.4665, allocations: 0.6083 MB / 0.5199 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007152/0.4672, allocations: 369.3 kB / 0.5203 GB, free: 14.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008246/0.4681, allocations: 405.3 kB / 0.5207 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001652/0.4682, allocations: 56.38 kB / 0.5207 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003123/0.4686, allocations: 66.8 kB / 0.5208 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004055/0.469, allocations: 254.8 kB / 0.521 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006087/0.4696, allocations: 326 kB / 0.5213 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001434/0.471, allocations: 0.8129 MB / 0.5221 GB, free: 13.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.4711, allocations: 2.172 kB / 0.5221 GB, free: 13.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.4711, allocations: 0 / 0.5221 GB, free: 13.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.138e-05/0.4711, allocations: 0 / 0.5221 GB, free: 13.64 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.002225/0.4734, allocations: 0.8827 MB / 0.523 GB, free: 12.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.4734, allocations: 14.02 kB / 0.523 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001262/0.4735, allocations: 88.52 kB / 0.5231 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003052/0.4739, allocations: 71.5 kB / 0.5232 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/0.475, allocations: 0.5673 MB / 0.5237 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.4751, allocations: 38.45 kB / 0.5238 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.85e-05/0.4752, allocations: 42.5 kB / 0.5238 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.4762, allocations: 0.6301 MB / 0.5244 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.4762, allocations: 5.047 kB / 0.5244 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.023e-05/0.4763, allocations: 22.17 kB / 0.5244 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001297/0.4764, allocations: 50.8 kB / 0.5245 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007617/0.4772, allocations: 466.2 kB / 0.5249 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003319/0.4805, allocations: 2.515 MB / 0.5274 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004742/0.481, allocations: 276.5 kB / 0.5277 GB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.4812, allocations: 148.9 kB / 0.5278 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.4813, allocations: 7.219 kB / 0.5278 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.4813, allocations: 50.62 kB / 0.5278 GB, free: 9.789 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 1.683e-06/0.4813, allocations: 0 / 0.5278 GB, free: 9.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002811/0.4841, allocations: 1.548 MB / 0.5294 GB, free: 8.629 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.4842, allocations: 80.67 kB / 0.5294 GB, free: 8.535 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004283/0.4846, allocations: 413.4 kB / 0.5298 GB, free: 8.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.798e-05/0.4847, allocations: 30.86 kB / 0.5299 GB, free: 8.242 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.4848, allocations: 304.9 kB / 0.5302 GB, free: 7.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.485, allocations: 124.8 kB / 0.5303 GB, free: 7.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.4851, allocations: 78.53 kB / 0.5303 GB, free: 7.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.4852, allocations: 361.2 kB / 0.5307 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.4854, allocations: 131 kB / 0.5308 GB, free: 7.398 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002889/0.4857, allocations: 281.5 kB / 0.5311 GB, free: 7.137 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005372/0.4863, allocations: 444.5 kB / 0.5315 GB, free: 6.797 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4863, allocations: 2.188 kB / 0.5315 GB, free: 6.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001042/0.4873, allocations: 0.6783 MB / 0.5322 GB, free: 6.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.4874, allocations: 6.844 kB / 0.5322 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.4874, allocations: 8.719 kB / 0.5322 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004299/0.4878, allocations: 156.4 kB / 0.5323 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002888/0.4881, allocations: 69.25 kB / 0.5324 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003168/0.4913, allocations: 3.68 MB / 0.536 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003153/0.4916, allocations: 19.02 kB / 0.536 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.778e-05/0.4917, allocations: 18.78 kB / 0.536 GB, free: 2.828 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.0003105/0.492, allocations: 235.1 kB / 0.5363 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.819e-05/0.4921, allocations: 48.69 kB / 0.5363 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009632/0.493, allocations: 0.5679 MB / 0.5369 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.4931, allocations: 3.906 kB / 0.5369 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007096/0.4938, allocations: 491.7 kB / 0.5373 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.4938, allocations: 5.141 kB / 0.5373 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.4953, allocations: 1.001 MB / 0.5383 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-06/0.4953, allocations: 4.922 kB / 0.5383 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002027/0.4956, allocations: 38.78 kB / 0.5384 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002795/0.4958, allocations: 93.62 kB / 0.5384 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.127e-05/0.4959, allocations: 3.344 kB / 0.5384 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001982/0.4979, allocations: 2.028 MB / 0.5404 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4979, allocations: 5.406 kB / 0.5404 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009534/0.4988, allocations: 0.6466 MB / 0.5411 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001916/0.499, allocations: 139.8 kB / 0.5412 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.564e-05/0.4991, allocations: 11.31 kB / 0.5412 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000196/0.4993, allocations: 7.344 kB / 0.5412 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.343e-05/0.4994, allocations: 22.03 kB / 0.5412 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.4994, allocations: 7.844 kB / 0.5412 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003549/0.4998, allocations: 301.4 kB / 0.5415 GB, free: 14.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4998, allocations: 4 kB / 0.5415 GB, free: 14.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000598/0.5004, allocations: 122.4 kB / 0.5417 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.001283/0.5017, allocations: 1.196 MB / 0.5428 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.5027, allocations: 0.6165 MB / 0.5434 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5028, allocations: 0 / 0.5434 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004771/0.5033, allocations: 303.5 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.0007088/0.504, allocations: 105.6 kB / 0.5438 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006575/0.5106, allocations: 4.786 MB / 0.5485 GB, free: 9.102 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005581/0.5111, allocations: 0.9206 MB / 0.5494 GB, free: 8.156 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002643/0.5114, allocations: 76.31 kB / 0.5495 GB, free: 8.082 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002552/0.5117, allocations: 183.3 kB / 0.5496 GB, free: 7.902 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.5117, allocations: 4 kB / 0.5496 GB, free: 7.898 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03639/0.5481, allocations: 10.45 MB / 0.5598 GB, free: 13.63 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.3/10.85, allocations: 19.69 kB / 0.5599 GB, free: 13.62 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