Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.001407/0.001407, allocations: 84.66 kB / 20.95 MB, free: 3.453 MB / 18.57 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.00207/0.00207, allocations: 149.1 kB / 24.25 MB, free: 160 kB / 18.57 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.544/1.544, allocations: 173.4 MB / 200.8 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 178] 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(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.003e-06/2.003e-06, allocations: 0 / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.074e-05/3.274e-05, allocations: 2.312 kB / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.0236/0.02363, allocations: 10.1 MB / 277.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01398/0.03761, allocations: 3.659 MB / 281.1 MB, free: 8.879 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003249/0.04086, allocations: 79.5 kB / 281.2 MB, free: 8.801 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004644/0.04551, allocations: 0.8233 MB / 282 MB, free: 7.977 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005775/0.05128, allocations: 1.021 MB / 283 MB, free: 6.949 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.05348, allocations: 0.5264 MB / 283.5 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007514/0.061, allocations: 3.322 MB / 286.9 MB, free: 3.082 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004195/0.06519, allocations: 1.426 MB / 288.3 MB, free: 1.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1442/0.2094, allocations: 2.143 MB / 290.4 MB, free: 17.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00319/0.2126, allocations: 1.558 MB / 292 MB, free: 17.08 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00086/0.2135, allocations: 386.4 kB / 292.4 MB, free: 17.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001708/0.2152, allocations: 0.6025 MB / 293 MB, free: 17.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001108/0.2163, allocations: 1.108 MB / 294.1 MB, free: 17.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002055/0.2183, allocations: 1.188 MB / 295.3 MB, free: 17.08 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006212/0.2245, allocations: 5.111 MB / 300.4 MB, free: 16.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2245, allocations: 0 / 300.4 MB, free: 16.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2245, allocations: 0.6875 kB / 300.4 MB, free: 16.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001576/0.2247, allocations: 0 / 300.4 MB, free: 16.84 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.008373/0.2331, allocations: 3.457 MB / 303.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.2331, allocations: 10.52 kB / 303.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001696/0.2348, allocations: 0.6244 MB / 304.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003168/0.238, allocations: 1.823 MB / 306.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.2381, allocations: 193.8 kB / 306.5 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003912/0.2385, allocations: 249.1 kB / 306.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005576/0.2441, allocations: 3.38 MB / 310.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.29e-05/0.2442, allocations: 15.08 kB / 310.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.2444, allocations: 103.8 kB / 310.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/0.2445, allocations: 117.1 kB / 310.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004933/0.2495, allocations: 2.699 MB / 313 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01435/0.2638, allocations: 9.082 MB / 322.1 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002004/0.2658, allocations: 1.241 MB / 323.4 MB, free: 15.51 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002017/0.2678, allocations: 0.978 MB / 324.3 MB, free: 14.53 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002669/0.2681, allocations: 60.08 kB / 324.4 MB, free: 14.48 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.907e-05/0.2681, allocations: 47.56 kB / 324.4 MB, free: 14.42 MB / 282.7 MB Notification: Performance of pre-optimization done (n=115): time 3.656e-06/0.2681, allocations: 0 / 324.4 MB, free: 14.42 MB / 282.7 MB Notification: Performance of matching and sorting (n=134): time 0.02093/0.2891, allocations: 7.097 MB / 331.5 MB, free: 7.344 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.824e-05/0.2892, allocations: 76.64 kB / 331.6 MB, free: 7.258 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00322/0.2924, allocations: 1.695 MB / 333.3 MB, free: 5.555 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001288/0.2925, allocations: 49.7 kB / 333.4 MB, free: 5.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001246/0.2938, allocations: 1.288 MB / 334.6 MB, free: 4.203 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005344/0.2943, allocations: 488 kB / 335.1 MB, free: 3.734 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005637/0.2949, allocations: 291.5 kB / 335.4 MB, free: 3.441 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003581/0.2952, allocations: 301.1 kB / 335.7 MB, free: 3.145 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001618/0.2968, allocations: 0.8218 MB / 336.5 MB, free: 2.324 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002168/0.299, allocations: 1.31 MB / 337.8 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003879/0.3029, allocations: 2.252 MB / 340.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.3029, allocations: 4 kB / 340.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.00614/0.309, allocations: 2.786 MB / 342.9 MB, free: 11.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.3091, allocations: 12.28 kB / 342.9 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.15e-05/0.3091, allocations: 20 kB / 342.9 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001351/0.3104, allocations: 462.5 kB / 343.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001633/0.3121, allocations: 401.8 kB / 343.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007407/0.3195, allocations: 5.509 MB / 349.3 MB, free: 5.184 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002327/0.3218, allocations: 118 kB / 349.4 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002469/0.3221, allocations: 79.97 kB / 349.5 MB, free: 4.992 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002089/0.3241, allocations: 0.7863 MB / 350.2 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008903/0.325, allocations: 242.7 kB / 350.5 MB, free: 3.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005021/0.3301, allocations: 2.299 MB / 352.8 MB, free: 1.672 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.612e-05/0.3301, allocations: 12 kB / 352.8 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.3301, allocations: 4 kB / 352.8 MB, free: 1.656 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.895e-05/0.3301, allocations: 11.97 kB / 352.8 MB, free: 1.645 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/0.3405, allocations: 4.535 MB / 357.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/0.3405, allocations: 4 kB / 357.3 MB, free: 13.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.3417, allocations: 262.6 kB / 357.6 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001577/0.3433, allocations: 493.7 kB / 358.1 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001115/0.3434, allocations: 31.98 kB / 358.1 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009064/0.3525, allocations: 6.926 MB / 365 MB, free: 5.117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.47e-05/0.3525, allocations: 15.78 kB / 365.1 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00715/0.3596, allocations: 3.515 MB / 368.6 MB, free: 1.531 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/0.361, allocations: 361 kB / 368.9 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003788/0.3614, allocations: 32 kB / 368.9 MB, free: 1.148 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.3628, allocations: 102.8 kB / 369.1 MB, free: 1.051 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003841/0.3631, allocations: 119 kB / 369.2 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/0.3633, allocations: 39.98 kB / 369.2 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002669/0.3659, allocations: 1.153 MB / 370.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3659, allocations: 0 / 370.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003348/0.3693, allocations: 0.5468 MB / 370.9 MB, free: 15.2 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006775/0.37, allocations: 225.8 kB / 371.1 MB, free: 14.99 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005024/0.375, allocations: 2.259 MB / 373.4 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/0.375, allocations: 8.25 kB / 373.4 MB, free: 12.76 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002947/0.3779, allocations: 1.451 MB / 374.8 MB, free: 11.3 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002529/0.3805, allocations: 387.3 kB / 375.2 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/0.391, allocations: 5.116 MB / 380.3 MB, free: 5.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00209/0.3931, allocations: 1.45 MB / 381.8 MB, free: 4.246 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001605/0.3947, allocations: 406.3 kB / 382.2 MB, free: 3.844 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004604/0.3952, allocations: 128.5 kB / 382.3 MB, free: 3.719 MB / 330.7 MB Notification: Performance of SimCode: time 1.353e-06/0.3952, allocations: 0 / 382.3 MB, free: 3.719 MB / 330.7 MB Notification: Performance of Templates: time 0.05284/0.448, allocations: 26.35 MB / 408.7 MB, free: 9.75 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.998815538012423]