Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 84.34 kB / 20.95 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 165.3 kB / 24.27 MB, free: 144 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.501/1.501, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.3153/0.3153, allocations: 29.41 MB / 290.5 MB, free: 2.422 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.035e-06/3.035e-06, allocations: 0 / 368.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.374e-05/3.678e-05, allocations: 2.312 kB / 368.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007612/0.007649, allocations: 4.455 MB / 373.3 MB, free: 6.816 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002626/0.01028, allocations: 1.378 MB / 374.7 MB, free: 5.434 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000261/0.01054, allocations: 23.81 kB / 374.7 MB, free: 5.41 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004765/0.01101, allocations: 115 kB / 374.9 MB, free: 5.297 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007523/0.01176, allocations: 286.1 kB / 375.1 MB, free: 5.016 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003732/0.01214, allocations: 111.8 kB / 375.2 MB, free: 4.906 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008621/0.013, allocations: 0.5212 MB / 375.8 MB, free: 4.383 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002431/0.01324, allocations: 100.4 kB / 375.9 MB, free: 4.285 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004877/0.01373, allocations: 299.1 kB / 376.2 MB, free: 3.992 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003509/0.01408, allocations: 171.5 kB / 376.3 MB, free: 3.824 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.811e-05/0.01414, allocations: 28 kB / 376.4 MB, free: 3.797 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.28e-05/0.0142, allocations: 24 kB / 376.4 MB, free: 3.773 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.01436, allocations: 115.6 kB / 376.5 MB, free: 3.66 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.01454, allocations: 111.8 kB / 376.6 MB, free: 3.551 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005601/0.0151, allocations: 378.8 kB / 377 MB, free: 3.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.01511, allocations: 0 / 377 MB, free: 3.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.01511, allocations: 0 / 377 MB, free: 3.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.01511, allocations: 4 kB / 377 MB, free: 3.176 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001418/0.01653, allocations: 0.5954 MB / 377.6 MB, free: 2.551 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.01657, allocations: 11.98 kB / 377.6 MB, free: 2.539 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.0167, allocations: 60.7 kB / 377.6 MB, free: 2.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006938/0.01739, allocations: 360.8 kB / 378 MB, free: 2.102 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.01742, allocations: 25.03 kB / 378 MB, free: 2.078 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.083e-05/0.01748, allocations: 28.33 kB / 378 MB, free: 2.051 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005777/0.01806, allocations: 335.5 kB / 378.4 MB, free: 1.684 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.01808, allocations: 3.938 kB / 378.4 MB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.01811, allocations: 15.98 kB / 378.4 MB, free: 1.664 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.01812, allocations: 8 kB / 378.4 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003589/0.01848, allocations: 205.7 kB / 378.6 MB, free: 1.457 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.0202, allocations: 1.344 MB / 379.9 MB, free: 36 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004711/0.02067, allocations: 194.4 kB / 380.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.02081, allocations: 71.55 kB / 380.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.02084, allocations: 4 kB / 380.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.026e-05/0.02088, allocations: 42.48 kB / 380.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.263e-06/0.02088, allocations: 0 / 380.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.001651/0.02253, allocations: 0.6164 MB / 380.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.02265, allocations: 140.5 kB / 381 MB, free: 14.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004533/0.0231, allocations: 288.5 kB / 381.3 MB, free: 14.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.02314, allocations: 29.7 kB / 381.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002259/0.02336, allocations: 220.4 kB / 381.5 MB, free: 14.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.232e-05/0.02345, allocations: 59.48 kB / 381.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.02357, allocations: 57.66 kB / 381.6 MB, free: 14.19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002414/0.02381, allocations: 346.7 kB / 382 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.02396, allocations: 43.98 kB / 382 MB, free: 13.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002879/0.02425, allocations: 148.8 kB / 382.2 MB, free: 13.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004981/0.02474, allocations: 224.8 kB / 382.4 MB, free: 13.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.02475, allocations: 8 kB / 382.4 MB, free: 13.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004804/0.02523, allocations: 260.5 kB / 382.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.02525, allocations: 8 kB / 382.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.02526, allocations: 4.438 kB / 382.7 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.037e-05/0.02529, allocations: 11.98 kB / 382.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003802/0.02567, allocations: 75.91 kB / 382.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.02679, allocations: 1.251 MB / 384 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.02696, allocations: 19.94 kB / 384 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.02698, allocations: 12.16 kB / 384 MB, free: 11.59 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004576/0.02744, allocations: 161.8 kB / 384.2 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.02755, allocations: 39.75 kB / 384.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003745/0.02792, allocations: 188.2 kB / 384.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.02793, allocations: 4 kB / 384.4 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.02793, allocations: 0 / 384.4 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.02794, allocations: 4 kB / 384.4 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008214/0.02876, allocations: 473.9 kB / 384.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.02876, allocations: 3.938 kB / 384.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002518/0.02902, allocations: 47.95 kB / 384.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.02902, allocations: 0 / 384.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.657e-05/0.02904, allocations: 11.98 kB / 384.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.02905, allocations: 0 / 384.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.02905, allocations: 0 / 384.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005807/0.02963, allocations: 0.49 MB / 385.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.653e-05/0.02967, allocations: 27.75 kB / 385.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.424e-05/0.02971, allocations: 8 kB / 385.5 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.02991, allocations: 0 / 385.5 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/0.02996, allocations: 19.97 kB / 385.5 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.02997, allocations: 8 kB / 385.5 MB, free: 10.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002148/0.03019, allocations: 195.1 kB / 385.7 MB, free: 9.867 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03019, allocations: 0 / 385.7 MB, free: 9.867 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004367/0.03062, allocations: 60 kB / 385.7 MB, free: 9.809 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001326/0.03076, allocations: 103.2 kB / 385.8 MB, free: 9.699 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003925/0.03115, allocations: 152.8 kB / 386 MB, free: 9.547 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.03115, allocations: 4.062 kB / 386 MB, free: 9.543 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.03127, allocations: 66.25 kB / 386.1 MB, free: 9.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007197/0.03199, allocations: 88.25 kB / 386.2 MB, free: 9.398 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.03355, allocations: 0.7335 MB / 386.9 MB, free: 8.625 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.03379, allocations: 193.1 kB / 387.1 MB, free: 8.422 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001594/0.03395, allocations: 50.94 kB / 387.1 MB, free: 8.371 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.951e-05/0.03403, allocations: 24.5 kB / 387.1 MB, free: 8.348 MB / 362.7 MB Notification: Performance of SimCode: time 7.91e-07/0.03403, allocations: 0 / 387.1 MB, free: 8.348 MB / 362.7 MB Notification: Performance of Templates: time 0.0077/0.04173, allocations: 2.897 MB / 390 MB, free: 5.52 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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: 4.826643531094305]