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.001285/0.001285, allocations: 85.83 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001356/0.001356, allocations: 165.5 kB / 23.96 MB, free: 4.164 MB / 14.72 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.415/1.415, allocations: 177.1 MB / 204.3 MB, free: 9.207 MB / 190.1 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.1669/0.1669, allocations: 29.43 MB / 290.1 MB, free: 3.312 MB / 270.1 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 1.442e-06/1.442e-06, allocations: 0 / 430.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.456e-05/2.6e-05, allocations: 2.281 kB / 430.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006652/0.006678, allocations: 4.439 MB / 435.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002323/0.009001, allocations: 1.394 MB / 436.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001967/0.009198, allocations: 19.81 kB / 436.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004459/0.009644, allocations: 115.1 kB / 436.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000675/0.01032, allocations: 290.1 kB / 437 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002913/0.01061, allocations: 107.8 kB / 437.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007431/0.01135, allocations: 0.529 MB / 437.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002262/0.01158, allocations: 100.4 kB / 437.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003963/0.01198, allocations: 287.1 kB / 438 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/0.01229, allocations: 179.5 kB / 438.2 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.322e-05/0.01234, allocations: 28 kB / 438.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.546e-05/0.01241, allocations: 24 kB / 438.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.01254, allocations: 111.6 kB / 438.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.01271, allocations: 115.7 kB / 438.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004903/0.0132, allocations: 378.7 kB / 438.8 MB, free: 9.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.0132, allocations: 8 kB / 438.8 MB, free: 9.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.0132, allocations: 0 / 438.8 MB, free: 9.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.01321, allocations: 0 / 438.8 MB, free: 9.832 MB / 366.1 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.001017/0.01423, allocations: 0.591 MB / 439.4 MB, free: 9.215 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.01427, allocations: 11.98 kB / 439.4 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.105e-05/0.01436, allocations: 44.66 kB / 439.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006786/0.01504, allocations: 340.8 kB / 439.8 MB, free: 8.801 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.01507, allocations: 25.03 kB / 439.8 MB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.833e-05/0.01512, allocations: 28.38 kB / 439.8 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000546/0.01567, allocations: 335.5 kB / 440.2 MB, free: 8.387 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.01569, allocations: 3.984 kB / 440.2 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.711e-05/0.01573, allocations: 15.98 kB / 440.2 MB, free: 8.367 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.01574, allocations: 4 kB / 440.2 MB, free: 8.363 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003605/0.0161, allocations: 205.8 kB / 440.4 MB, free: 8.164 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.0177, allocations: 1.34 MB / 441.7 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004235/0.01813, allocations: 193.6 kB / 441.9 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.01825, allocations: 75.41 kB / 442 MB, free: 6.438 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.01827, allocations: 4 kB / 442 MB, free: 6.434 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.01831, allocations: 42.5 kB / 442 MB, free: 6.383 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.573e-06/0.01831, allocations: 0 / 442 MB, free: 6.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.001169/0.01948, allocations: 0.6163 MB / 442.7 MB, free: 5.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.01959, allocations: 136.5 kB / 442.8 MB, free: 5.566 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003186/0.01991, allocations: 284.5 kB / 443.1 MB, free: 5.273 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.01994, allocations: 29.7 kB / 443.1 MB, free: 5.238 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.02012, allocations: 220.4 kB / 443.3 MB, free: 5.016 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.31e-05/0.02019, allocations: 67.42 kB / 443.4 MB, free: 4.949 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.523e-05/0.02027, allocations: 49.66 kB / 443.4 MB, free: 4.895 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.02044, allocations: 350.7 kB / 443.8 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.02055, allocations: 52.34 kB / 443.8 MB, free: 4.492 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.02073, allocations: 148.8 kB / 444 MB, free: 4.301 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003238/0.02105, allocations: 227.8 kB / 444.2 MB, free: 4.035 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.02105, allocations: 0 / 444.2 MB, free: 4.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004218/0.02147, allocations: 249.4 kB / 444.4 MB, free: 3.785 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.02149, allocations: 12.06 kB / 444.4 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.0215, allocations: 4 kB / 444.4 MB, free: 3.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.02152, allocations: 4 kB / 444.4 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003874/0.02191, allocations: 79.89 kB / 444.5 MB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/0.02295, allocations: 1.258 MB / 445.8 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.02309, allocations: 8 kB / 445.8 MB, free: 2.324 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.02311, allocations: 12 kB / 445.8 MB, free: 2.312 MB / 366.1 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.0002134/0.02333, allocations: 165.7 kB / 446 MB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.02343, allocations: 39.78 kB / 446 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003491/0.02378, allocations: 184.1 kB / 446.2 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.02378, allocations: 0 / 446.2 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.02379, allocations: 8 kB / 446.2 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.0238, allocations: 3.984 kB / 446.2 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007467/0.02455, allocations: 454.2 kB / 446.6 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.02455, allocations: 7.938 kB / 446.6 MB, free: 1.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.02479, allocations: 39.97 kB / 446.7 MB, free: 1.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.0248, allocations: 7.938 kB / 446.7 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.02482, allocations: 4 kB / 446.7 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.02482, allocations: 4 kB / 446.7 MB, free: 1.363 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.02482, allocations: 0 / 446.7 MB, free: 1.363 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005711/0.02539, allocations: 493.5 kB / 447.2 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.091e-05/0.02546, allocations: 39.69 kB / 447.2 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.523e-05/0.02551, allocations: 7.938 kB / 447.2 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.02574, allocations: 8 kB / 447.2 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.02578, allocations: 15.95 kB / 447.3 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.02579, allocations: 8 kB / 447.3 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002178/0.02601, allocations: 195.1 kB / 447.4 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.02601, allocations: 0 / 447.4 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005188/0.02653, allocations: 63.98 kB / 447.5 MB, free: 0.5312 MB / 366.1 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.0001631/0.02669, allocations: 95.25 kB / 447.6 MB, free: 440 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000416/0.02711, allocations: 151.9 kB / 447.8 MB, free: 288 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.02711, allocations: 0 / 447.8 MB, free: 288 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001247/0.02724, allocations: 67.84 kB / 447.8 MB, free: 220 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007266/0.02796, allocations: 80.73 kB / 447.9 MB, free: 144 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1661/0.194, allocations: 0.7167 MB / 448.6 MB, free: 29.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001902/0.1942, allocations: 196.8 kB / 448.8 MB, free: 29.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001861/0.1944, allocations: 55.31 kB / 448.9 MB, free: 29.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.553e-05/0.1945, allocations: 27.27 kB / 448.9 MB, free: 29.79 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1945, allocations: 0 / 448.9 MB, free: 29.79 MB / 366.1 MB Notification: Performance of Templates: time 0.007528/0.202, allocations: 2.872 MB / 451.8 MB, free: 29.49 MB / 366.1 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.473460279405117]