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: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001854/0.001854, allocations: 111.1 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.002177/0.002177, allocations: 200 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.472/1.472, 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.1823/0.1823, allocations: 38.05 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 60.09 kB / 458.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4456/0.4468, allocations: 58.07 MB / 0.5041 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006844/0.4536, allocations: 5.223 MB / 0.5092 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005827/0.4595, allocations: 3.964 MB / 0.5131 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006121/0.4601, allocations: 19.16 kB / 0.5131 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01265/0.4728, allocations: 4.797 MB / 0.5178 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001968/0.4748, allocations: 325.7 kB / 0.5181 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008281/0.4757, allocations: 213 kB / 0.5183 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003755/0.4794, allocations: 1.555 MB / 0.5198 GB, free: 15.13 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001469/0.481, allocations: 0.5873 MB / 0.5204 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009491/0.4819, allocations: 370.8 kB / 0.5207 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008826/0.4828, allocations: 410.7 kB / 0.5211 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001629/0.483, allocations: 55.66 kB / 0.5212 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003024/0.4833, allocations: 65.12 kB / 0.5212 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004463/0.4838, allocations: 260.6 kB / 0.5215 GB, free: 14.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000532/0.4843, allocations: 318.3 kB / 0.5218 GB, free: 14.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001611/0.4859, allocations: 0.8087 MB / 0.5226 GB, free: 13.92 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4859, allocations: 9.281 kB / 0.5226 GB, free: 13.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.4859, allocations: 0 / 0.5226 GB, free: 13.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.486, allocations: 0 / 0.5226 GB, free: 13.91 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.001862/0.4878, allocations: 0.8803 MB / 0.5235 GB, free: 13.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.4879, allocations: 17.53 kB / 0.5235 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002903/0.4882, allocations: 72.25 kB / 0.5235 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.4893, allocations: 0.5697 MB / 0.5241 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.4893, allocations: 31.19 kB / 0.5241 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.678e-05/0.4894, allocations: 46.64 kB / 0.5242 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/0.4906, allocations: 0.6347 MB / 0.5248 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.4906, allocations: 5.734 kB / 0.5248 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.935e-05/0.4907, allocations: 17.47 kB / 0.5248 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001256/0.4908, allocations: 45.64 kB / 0.5249 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008048/0.4916, allocations: 466.4 kB / 0.5253 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003463/0.4951, allocations: 2.509 MB / 0.5278 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004635/0.4956, allocations: 276.5 kB / 0.528 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002321/0.4958, allocations: 144.6 kB / 0.5282 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.4958, allocations: 4.031 kB / 0.5282 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.4959, allocations: 47.58 kB / 0.5282 GB, free: 10.04 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.294e-06/0.4959, allocations: 5.125 kB / 0.5282 GB, free: 10.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002999/0.4989, allocations: 1.556 MB / 0.5297 GB, free: 8.871 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.37e-05/0.499, allocations: 81.11 kB / 0.5298 GB, free: 8.777 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004608/0.4995, allocations: 409.2 kB / 0.5302 GB, free: 8.523 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.4995, allocations: 38.81 kB / 0.5302 GB, free: 8.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.4997, allocations: 300.1 kB / 0.5305 GB, free: 8.215 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.4999, allocations: 122.1 kB / 0.5306 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.5, allocations: 86.11 kB / 0.5307 GB, free: 8.051 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.5002, allocations: 361.1 kB / 0.5311 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.5004, allocations: 131.6 kB / 0.5312 GB, free: 7.637 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000294/0.5007, allocations: 284.9 kB / 0.5315 GB, free: 7.371 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005438/0.5013, allocations: 449.1 kB / 0.5319 GB, free: 7.027 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.5013, allocations: 1.188 kB / 0.5319 GB, free: 7.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001068/0.5023, allocations: 0.6791 MB / 0.5326 GB, free: 6.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.5024, allocations: 6.719 kB / 0.5326 GB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.5024, allocations: 5.031 kB / 0.5326 GB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004375/0.5028, allocations: 151.8 kB / 0.5327 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003079/0.5031, allocations: 77.2 kB / 0.5328 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003473/0.5066, allocations: 3.676 MB / 0.5364 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000462/0.5071, allocations: 18.02 kB / 0.5364 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.16e-05/0.5072, allocations: 16.12 kB / 0.5364 GB, free: 3.066 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.0004286/0.5076, allocations: 234.6 kB / 0.5366 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.963e-05/0.5077, allocations: 49.11 kB / 0.5367 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001027/0.5087, allocations: 0.5715 MB / 0.5372 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.5088, allocations: 3.438 kB / 0.5372 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007132/0.5095, allocations: 489 kB / 0.5377 GB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.5095, allocations: 0 / 0.5377 GB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001698/0.5112, allocations: 1.001 MB / 0.5387 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.5112, allocations: 1 kB / 0.5387 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002006/0.5114, allocations: 42.69 kB / 0.5387 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002774/0.5117, allocations: 93.91 kB / 0.5388 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.5117, allocations: 7.125 kB / 0.5388 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002232/0.514, allocations: 2.023 MB / 0.5408 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.514, allocations: 6.375 kB / 0.5408 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001071/0.5151, allocations: 0.6499 MB / 0.5414 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002078/0.5153, allocations: 144 kB / 0.5416 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.251e-05/0.5154, allocations: 7.219 kB / 0.5416 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.5156, allocations: 7.719 kB / 0.5416 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.732e-05/0.5156, allocations: 22.56 kB / 0.5416 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.5157, allocations: 11.28 kB / 0.5416 GB, free: 14.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004112/0.5161, allocations: 301.1 kB / 0.5419 GB, free: 14.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5161, allocations: 0 / 0.5419 GB, free: 14.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006494/0.5167, allocations: 119.5 kB / 0.542 GB, free: 14.66 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.0001549/0.5169, allocations: 118.8 kB / 0.5421 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.518, allocations: 0.6169 MB / 0.5427 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.518, allocations: 0 / 0.5427 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005274/0.5186, allocations: 302.8 kB / 0.543 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006499/0.5192, allocations: 113.5 kB / 0.5431 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/0.5213, allocations: 1.133 MB / 0.5442 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005915/0.5219, allocations: 0.9214 MB / 0.5451 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002731/0.5221, allocations: 78 kB / 0.5452 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.03e-05/0.5222, allocations: 31.62 kB / 0.5452 GB, free: 12.25 MB / 414.1 MB Notification: Performance of SimCode: time 4.2e-07/0.5223, allocations: 4 kB / 0.5452 GB, free: 12.24 MB / 414.1 MB Notification: Performance of Templates: time 0.01149/0.5337, allocations: 5.693 MB / 0.5508 GB, free: 7.484 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches