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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 225.6 MB / 250.8 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1844/0.1844, allocations: 38.52 MB / 344.5 MB, free: 2.637 MB / 270.1 MB " [Timeout remaining time 180] 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=2500,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=2500,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 67.89 kB / 482.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3062, allocations: 61.25 MB / 0.5306 GB, free: 5.711 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.00619/0.3124, allocations: 5.37 MB / 0.5358 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005238/0.3176, allocations: 4.005 MB / 0.5397 GB, free: 14.83 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003316/0.3179, allocations: 13.81 kB / 0.5397 GB, free: 14.83 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009284/0.3272, allocations: 4.979 MB / 0.5446 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001298/0.3285, allocations: 325.7 kB / 0.5449 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006042/0.3291, allocations: 218.6 kB / 0.5451 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002501/0.3316, allocations: 1.594 MB / 0.5467 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008303/0.3324, allocations: 480.3 kB / 0.5471 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006394/0.3331, allocations: 368.6 kB / 0.5475 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006307/0.3337, allocations: 455.7 kB / 0.5479 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.293e-05/0.3338, allocations: 55.25 kB / 0.548 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000198/0.334, allocations: 69.36 kB / 0.548 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002726/0.3343, allocations: 257 kB / 0.5483 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000345/0.3346, allocations: 325.6 kB / 0.5486 GB, free: 9.664 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009919/0.3356, allocations: 0.8145 MB / 0.5494 GB, free: 9.082 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3356, allocations: 4.875 kB / 0.5494 GB, free: 9.078 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3356, allocations: 0 / 0.5494 GB, free: 9.078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.3356, allocations: 0 / 0.5494 GB, free: 9.078 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.001751/0.3374, allocations: 0.8773 MB / 0.5503 GB, free: 8.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.3374, allocations: 12.83 kB / 0.5503 GB, free: 8.348 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002919/0.3377, allocations: 75.3 kB / 0.5503 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.3388, allocations: 0.5672 MB / 0.5509 GB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.434e-05/0.3388, allocations: 44.92 kB / 0.5509 GB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.114e-05/0.3389, allocations: 43.95 kB / 0.551 GB, free: 7.738 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.3399, allocations: 0.6258 MB / 0.5516 GB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.34, allocations: 4 kB / 0.5516 GB, free: 7.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.428e-05/0.34, allocations: 19.98 kB / 0.5516 GB, free: 7.055 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001303/0.3402, allocations: 52.95 kB / 0.5517 GB, free: 7.004 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007751/0.3409, allocations: 463.6 kB / 0.5521 GB, free: 6.547 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003284/0.3442, allocations: 2.503 MB / 0.5545 GB, free: 3.902 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004809/0.3447, allocations: 269.1 kB / 0.5548 GB, free: 3.621 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002384/0.3449, allocations: 141.7 kB / 0.5549 GB, free: 3.477 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.345, allocations: 4.5 kB / 0.5549 GB, free: 3.473 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.345, allocations: 38.5 kB / 0.555 GB, free: 3.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.685e-06/0.345, allocations: 3.938 kB / 0.555 GB, free: 3.422 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.003229/0.3482, allocations: 1.55 MB / 0.5565 GB, free: 1.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.046e-05/0.3483, allocations: 85.23 kB / 0.5566 GB, free: 1.656 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005166/0.3488, allocations: 413.9 kB / 0.557 GB, free: 1.242 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.3488, allocations: 33.7 kB / 0.557 GB, free: 1.203 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002308/0.3491, allocations: 300.2 kB / 0.5573 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.3492, allocations: 122.9 kB / 0.5574 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.3493, allocations: 82.09 kB / 0.5575 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.3495, allocations: 358.7 kB / 0.5578 GB, free: 348 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.3497, allocations: 132.8 kB / 0.558 GB, free: 216 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000347/0.3501, allocations: 278.3 kB / 0.5582 GB, free: 15.87 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005915/0.3507, allocations: 453.7 kB / 0.5587 GB, free: 15.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.3507, allocations: 4 kB / 0.5587 GB, free: 15.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001101/0.3518, allocations: 0.6758 MB / 0.5593 GB, free: 14.65 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3518, allocations: 4 kB / 0.5593 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.3518, allocations: 8 kB / 0.5593 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004531/0.3522, allocations: 149.5 kB / 0.5595 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003103/0.3526, allocations: 71.84 kB / 0.5595 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003786/0.3563, allocations: 3.676 MB / 0.5631 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002985/0.3566, allocations: 15.98 kB / 0.5631 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.712e-05/0.3567, allocations: 20 kB / 0.5632 GB, free: 10.43 MB / 414.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.0003402/0.357, allocations: 237.6 kB / 0.5634 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.903e-05/0.3571, allocations: 51.78 kB / 0.5634 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.3581, allocations: 0.5633 MB / 0.564 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.3581, allocations: 8 kB / 0.564 GB, free: 9.527 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007947/0.3589, allocations: 487.2 kB / 0.5645 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.359, allocations: 3.984 kB / 0.5645 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001558/0.3605, allocations: 0.9974 MB / 0.5654 GB, free: 7.945 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3605, allocations: 0 / 0.5654 GB, free: 7.945 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/0.3607, allocations: 43.91 kB / 0.5655 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002877/0.361, allocations: 85.02 kB / 0.5656 GB, free: 7.816 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/0.361, allocations: 12.09 kB / 0.5656 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002217/0.3632, allocations: 2.016 MB / 0.5675 GB, free: 5.648 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3632, allocations: 0 / 0.5675 GB, free: 5.648 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.3643, allocations: 0.6562 MB / 0.5682 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002145/0.3645, allocations: 140.8 kB / 0.5683 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.221e-05/0.3645, allocations: 8 kB / 0.5683 GB, free: 4.797 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.3647, allocations: 4 kB / 0.5683 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.774e-05/0.3648, allocations: 24.03 kB / 0.5684 GB, free: 4.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.3648, allocations: 12 kB / 0.5684 GB, free: 4.758 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003658/0.3652, allocations: 303.1 kB / 0.5687 GB, free: 4.465 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3652, allocations: 0 / 0.5687 GB, free: 4.465 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005697/0.3657, allocations: 120 kB / 0.5688 GB, free: 4.348 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.0001324/0.3659, allocations: 115 kB / 0.5689 GB, free: 4.227 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.3669, allocations: 0.5994 MB / 0.5695 GB, free: 3.602 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3669, allocations: 0 / 0.5695 GB, free: 3.602 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004587/0.3674, allocations: 298.5 kB / 0.5697 GB, free: 3.297 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006902/0.3681, allocations: 110.5 kB / 0.5699 GB, free: 3.199 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.37, allocations: 1.139 MB / 0.571 GB, free: 2.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005636/0.3706, allocations: 0.9206 MB / 0.5719 GB, free: 1.074 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002193/0.3708, allocations: 72.33 kB / 0.5719 GB, free: 1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.138e-05/0.3709, allocations: 31.44 kB / 0.572 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3709, allocations: 0 / 0.572 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of Templates: time 0.01194/0.3828, allocations: 5.907 MB / 0.5777 GB, free: 11.12 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.012469937093556]