Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.0009733/0.0009733, allocations: 82.28 kB / 22.21 MB, free: 2.289 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.0009964/0.0009964, allocations: 150.3 kB / 25.6 MB, free: 8.926 MB / 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 0.9372/0.9372, allocations: 173.4 MB / 202.2 MB, free: 8.297 MB / 186.7 MB " [Timeout remaining time 179] 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.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.923e-06/1.923e-06, allocations: 0 / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.724e-05/3.916e-05, allocations: 3.125 kB / 269.2 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01201/0.01205, allocations: 9.848 MB / 279.1 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007833/0.01988, allocations: 3.163 MB / 282.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002557/0.02244, allocations: 71.5 kB / 282.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002782/0.02522, allocations: 0.6946 MB / 283 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004294/0.02951, allocations: 0.9236 MB / 283.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.03103, allocations: 415.2 kB / 284.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003356/0.03439, allocations: 3.057 MB / 287.4 MB, free: 7.539 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001424/0.03581, allocations: 1.341 MB / 288.7 MB, free: 6.133 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002515/0.03833, allocations: 2.273 MB / 291 MB, free: 3.855 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001703/0.04003, allocations: 1.528 MB / 292.5 MB, free: 2.324 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000423/0.04045, allocations: 344 kB / 292.8 MB, free: 1.988 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006052/0.04106, allocations: 443.8 kB / 293.3 MB, free: 1.555 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000628/0.04169, allocations: 1.024 MB / 294.3 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001169/0.04286, allocations: 1.083 MB / 295.4 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002538/0.04539, allocations: 2.577 MB / 298 MB, free: 12.86 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.0454, allocations: 0 / 298 MB, free: 12.86 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.0454, allocations: 4 kB / 298 MB, free: 12.85 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.628e-05/0.04548, allocations: 4 kB / 298 MB, free: 12.85 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.003659/0.04914, allocations: 3.287 MB / 301.3 MB, free: 9.5 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.04917, allocations: 8.031 kB / 301.3 MB, free: 9.492 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006779/0.04985, allocations: 0.5263 MB / 301.8 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001569/0.05142, allocations: 1.531 MB / 303.3 MB, free: 7.383 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.855e-05/0.05152, allocations: 177 kB / 303.5 MB, free: 7.207 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002294/0.05175, allocations: 236.3 kB / 303.7 MB, free: 6.977 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001911/0.05366, allocations: 1.769 MB / 305.5 MB, free: 5.082 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.324e-05/0.05371, allocations: 7.953 kB / 305.5 MB, free: 5.074 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001386/0.05385, allocations: 92 kB / 305.6 MB, free: 4.984 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.051e-05/0.05393, allocations: 104.6 kB / 305.7 MB, free: 4.879 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.05495, allocations: 0.6931 MB / 306.4 MB, free: 4.148 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007263/0.06222, allocations: 7.761 MB / 314.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.06324, allocations: 0.7555 MB / 314.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006234/0.06387, allocations: 0.4902 MB / 315.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001499/0.06402, allocations: 52.97 kB / 315.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.06404, allocations: 46.39 kB / 315.5 MB, free: 10.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=116): time 2.655e-06/0.06405, allocations: 0 / 315.5 MB, free: 10.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=131): time 0.004813/0.06886, allocations: 2.661 MB / 318.2 MB, free: 8.043 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.06889, allocations: 68.7 kB / 318.2 MB, free: 7.965 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.06996, allocations: 1.364 MB / 319.6 MB, free: 6.578 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.892e-05/0.07002, allocations: 49.7 kB / 319.6 MB, free: 6.523 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006046/0.07062, allocations: 1.282 MB / 320.9 MB, free: 5.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002553/0.07088, allocations: 491.8 kB / 321.4 MB, free: 4.746 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002903/0.07117, allocations: 301 kB / 321.7 MB, free: 4.441 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.024e-05/0.07126, allocations: 476.8 kB / 322.2 MB, free: 3.973 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.07151, allocations: 183.8 kB / 322.3 MB, free: 3.793 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000496/0.07201, allocations: 0.7555 MB / 323.1 MB, free: 2.809 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008499/0.07286, allocations: 1.078 MB / 324.2 MB, free: 1.496 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.07286, allocations: 11.94 kB / 324.2 MB, free: 1.484 MB / 298.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.001803/0.07467, allocations: 1.295 MB / 325.5 MB, free: 168 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.07469, allocations: 12 kB / 325.5 MB, free: 156 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.0747, allocations: 12 kB / 325.5 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005035/0.0752, allocations: 257.8 kB / 325.8 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006737/0.07588, allocations: 319.5 kB / 326.1 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003511/0.07939, allocations: 6.447 MB / 332.5 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006085/0.08, allocations: 55.94 kB / 332.6 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.965e-05/0.08007, allocations: 55.98 kB / 332.6 MB, free: 8.676 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004692/0.08054, allocations: 248.1 kB / 332.9 MB, free: 8.422 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002412/0.08078, allocations: 222.8 kB / 333.1 MB, free: 8.203 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.0821, allocations: 1.061 MB / 334.1 MB, free: 7.109 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.08211, allocations: 19.94 kB / 334.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.08212, allocations: 4 kB / 334.2 MB, free: 7.086 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.08213, allocations: 7.969 kB / 334.2 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003561/0.08569, allocations: 3.129 MB / 337.3 MB, free: 3.816 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.0857, allocations: 4 kB / 337.3 MB, free: 3.812 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004873/0.08618, allocations: 204.1 kB / 337.5 MB, free: 3.613 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005378/0.08672, allocations: 262.4 kB / 337.8 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.375e-05/0.08678, allocations: 39.97 kB / 337.8 MB, free: 3.301 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004074/0.09086, allocations: 8.154 MB / 346 MB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.09086, allocations: 11.94 kB / 346 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002094/0.09296, allocations: 1.551 MB / 347.5 MB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004701/0.09343, allocations: 282.7 kB / 347.8 MB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.09357, allocations: 35.98 kB / 347.8 MB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000403/0.09397, allocations: 51.97 kB / 347.9 MB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/0.09415, allocations: 112.7 kB / 348 MB, free: 8.562 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.942e-05/0.0942, allocations: 28 kB / 348 MB, free: 8.535 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006402/0.09484, allocations: 0.7374 MB / 348.8 MB, free: 7.801 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.09484, allocations: 0 / 348.8 MB, free: 7.801 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001182/0.09602, allocations: 0.496 MB / 349.2 MB, free: 7.305 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,100.0%), (1,6,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002682/0.09629, allocations: 199.1 kB / 349.4 MB, free: 7.098 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.09775, allocations: 1.422 MB / 350.9 MB, free: 5.625 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.09775, allocations: 0 / 350.9 MB, free: 5.625 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009665/0.09872, allocations: 1.218 MB / 352.1 MB, free: 4.332 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.09979, allocations: 432.8 kB / 352.5 MB, free: 3.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09782/0.1976, allocations: 4.185 MB / 356.7 MB, free: 82.36 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000722/0.1983, allocations: 0.6523 MB / 357.3 MB, free: 82.24 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007235/0.1991, allocations: 221.3 kB / 357.6 MB, free: 82.22 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007287/0.1998, allocations: 486.1 kB / 358 MB, free: 82.16 MB / 330.7 MB Notification: Performance of SimCode: time 2.335e-06/0.1998, allocations: 0 / 358 MB, free: 82.16 MB / 330.7 MB Notification: Performance of Templates: time 0.03095/0.2307, allocations: 28.04 MB / 386.1 MB, free: 63.65 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.477538608945906]