Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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.001241/0.001241, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001443/0.001443, allocations: 170.4 kB / 24.91 MB, free: 9.191 MB / 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 0.8964/0.8964, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.532e-06/1.532e-06, allocations: 0 / 273.5 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.447e-05/1.6e-05, allocations: 2.312 kB / 273.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.008807/0.008823, allocations: 11.41 MB / 284.9 MB, free: 5.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005507/0.01433, allocations: 4.047 MB / 288.9 MB, free: 1.758 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000756/0.01509, allocations: 83.44 kB / 289 MB, free: 1.676 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001468/0.01655, allocations: 0.8518 MB / 289.9 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.09548/0.112, allocations: 1.08 MB / 290.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.1133, allocations: 0.5436 MB / 291.5 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002866/0.1161, allocations: 3.579 MB / 295.1 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001404/0.1175, allocations: 1.522 MB / 296.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002601/0.1201, allocations: 2.55 MB / 299.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001646/0.1218, allocations: 1.728 MB / 300.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004477/0.1222, allocations: 395.5 kB / 301.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007851/0.123, allocations: 0.615 MB / 301.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006112/0.1236, allocations: 1.156 MB / 303 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001027/0.1247, allocations: 1.253 MB / 304.3 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002084/0.1267, allocations: 2.998 MB / 307.3 MB, free: 11.49 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1267, allocations: 0 / 307.3 MB, free: 11.49 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1267, allocations: 5.969 kB / 307.3 MB, free: 11.49 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.067e-05/0.1268, allocations: 0 / 307.3 MB, free: 11.49 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.002997/0.1298, allocations: 3.449 MB / 310.7 MB, free: 9.406 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.1298, allocations: 15.5 kB / 310.7 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009262/0.1307, allocations: 0.5793 MB / 311.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.132, allocations: 1.314 MB / 312.6 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.498e-05/0.1321, allocations: 205 kB / 312.8 MB, free: 7.785 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002094/0.1323, allocations: 260.8 kB / 313.1 MB, free: 7.531 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/0.134, allocations: 2.069 MB / 315.2 MB, free: 5.473 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.358e-05/0.134, allocations: 7.953 kB / 315.2 MB, free: 5.465 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001382/0.1342, allocations: 112 kB / 315.3 MB, free: 5.355 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.52e-05/0.1342, allocations: 121.2 kB / 315.4 MB, free: 5.234 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009885/0.1352, allocations: 0.7881 MB / 316.2 MB, free: 4.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006407/0.1416, allocations: 7.192 MB / 323.4 MB, free: 13.49 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009134/0.1426, allocations: 0.7951 MB / 324.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005685/0.1431, allocations: 459.7 kB / 324.6 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001656/0.1433, allocations: 72.03 kB / 324.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.1433, allocations: 43.88 kB / 324.7 MB, free: 12.18 MB / 282.7 MB Notification: Performance of pre-optimization done (n=131): time 2.675e-06/0.1433, allocations: 0 / 324.7 MB, free: 12.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=148): time 0.00526/0.1486, allocations: 2.923 MB / 327.6 MB, free: 9.297 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.172e-05/0.1486, allocations: 68.7 kB / 327.7 MB, free: 9.215 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009105/0.1495, allocations: 1.301 MB / 329 MB, free: 8.156 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.901e-05/0.1496, allocations: 49.7 kB / 329.1 MB, free: 8.102 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004207/0.15, allocations: 1.116 MB / 330.2 MB, free: 7.051 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002543/0.1503, allocations: 0.5217 MB / 330.7 MB, free: 6.562 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003054/0.1506, allocations: 309.9 kB / 331 MB, free: 6.289 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.785e-05/0.1506, allocations: 305.1 kB / 331.3 MB, free: 5.988 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.1509, allocations: 206.7 kB / 331.5 MB, free: 5.785 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004604/0.1514, allocations: 0.6687 MB / 332.2 MB, free: 4.961 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008638/0.1522, allocations: 1.078 MB / 333.3 MB, free: 3.777 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.1522, allocations: 8 kB / 333.3 MB, free: 3.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.001567/0.1538, allocations: 1.188 MB / 334.4 MB, free: 2.676 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1538, allocations: 12 kB / 334.5 MB, free: 2.664 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.1539, allocations: 16 kB / 334.5 MB, free: 2.648 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006295/0.1545, allocations: 309.2 kB / 334.8 MB, free: 2.348 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000731/0.1552, allocations: 371.8 kB / 335.1 MB, free: 2.008 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002544/0.1578, allocations: 3.738 MB / 338.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006195/0.1584, allocations: 67.94 kB / 338.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-05/0.1585, allocations: 55.98 kB / 339 MB, free: 14.04 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * 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,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004652/0.1589, allocations: 221.3 kB / 339.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002324/0.1592, allocations: 179.7 kB / 339.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001228/0.1604, allocations: 0.9834 MB / 340.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/0.1604, allocations: 16 kB / 340.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1604, allocations: 4 kB / 340.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.1604, allocations: 7.969 kB / 340.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003361/0.1638, allocations: 2.864 MB / 343.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1638, allocations: 48 / 343.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005495/0.1643, allocations: 242.1 kB / 343.5 MB, free: 9.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007498/0.1651, allocations: 389.8 kB / 343.9 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.122e-05/0.1652, allocations: 43.97 kB / 343.9 MB, free: 9.449 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002813/0.168, allocations: 4.926 MB / 348.9 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.168, allocations: 7.375 kB / 348.9 MB, free: 4.309 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.1697, allocations: 1.437 MB / 350.3 MB, free: 2.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003808/0.1701, allocations: 252.5 kB / 350.5 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.1702, allocations: 35.98 kB / 350.6 MB, free: 2.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004437/0.1707, allocations: 62.62 kB / 350.6 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.1708, allocations: 116.6 kB / 350.8 MB, free: 2.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.764e-05/0.1709, allocations: 35.98 kB / 350.8 MB, free: 2.352 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00054/0.1714, allocations: 0.6574 MB / 351.4 MB, free: 1.773 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1714, allocations: 0 / 351.4 MB, free: 1.773 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001175/0.1726, allocations: 0.5742 MB / 352 MB, free: 1.195 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * 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,16,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.0003014/0.1729, allocations: 209.8 kB / 352.2 MB, free: 1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001319/0.1742, allocations: 1.207 MB / 353.4 MB, free: 15.85 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.744e-05/0.1742, allocations: 25.81 kB / 353.5 MB, free: 15.83 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008323/0.1751, allocations: 0.9128 MB / 354.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.1761, allocations: 437.8 kB / 354.8 MB, free: 14.51 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005374/0.1815, allocations: 4.578 MB / 359.4 MB, free: 9.887 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005168/0.182, allocations: 0.6229 MB / 360 MB, free: 9.242 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005734/0.1825, allocations: 243.8 kB / 360.2 MB, free: 9 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007649/0.1833, allocations: 455.1 kB / 360.7 MB, free: 8.551 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.1833, allocations: 0 / 360.7 MB, free: 8.551 MB / 314.7 MB Notification: Performance of Templates: time 0.03734/0.2207, allocations: 30.37 MB / 391 MB, free: 10.71 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_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.529501164332032]