Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001303/0.001303, allocations: 73.02 kB / 21.24 MB, free: 0.5547 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.00136/0.00136, allocations: 159.7 kB / 24.5 MB, free: 3.715 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.451/1.451, allocations: 177.2 MB / 204.9 MB, free: 9 MB / 190.1 MB " [Timeout remaining time 178] 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.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 55.73 kB / 325.6 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09016/0.09173, allocations: 53.34 MB / 378.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01301/0.1047, allocations: 10.23 MB / 389.2 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006153/0.1109, allocations: 3.09 MB / 392.2 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.112, allocations: 47.81 kB / 392.3 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001743/0.1137, allocations: 0.6129 MB / 392.9 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001867/0.1156, allocations: 0.7251 MB / 393.6 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008133/0.1164, allocations: 403.5 kB / 394 MB, free: 492 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002475/0.1189, allocations: 2.238 MB / 396.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009399/0.1198, allocations: 0.6068 MB / 396.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001084/0.1209, allocations: 0.8678 MB / 397.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/0.1219, allocations: 0.7889 MB / 398.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002719/0.1222, allocations: 216 kB / 398.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004375/0.1226, allocations: 259.9 kB / 399 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003506/0.123, allocations: 426.5 kB / 399.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00083/0.1238, allocations: 0.8206 MB / 400.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002667/0.1265, allocations: 2.704 MB / 402.9 MB, free: 7.488 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.84e-06/0.1265, allocations: 4 kB / 402.9 MB, free: 7.484 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.849e-06/0.1265, allocations: 3.984 kB / 402.9 MB, free: 7.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.872e-05/0.1265, allocations: 0 / 402.9 MB, free: 7.48 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003457/0.13, allocations: 2.037 MB / 405 MB, free: 5.395 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.13, allocations: 12.03 kB / 405 MB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000777/0.1308, allocations: 267.6 kB / 405.2 MB, free: 5.121 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0017/0.1325, allocations: 0.9726 MB / 406.2 MB, free: 4.117 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.71e-05/0.1326, allocations: 115.5 kB / 406.3 MB, free: 4.004 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002269/0.1328, allocations: 167.8 kB / 406.5 MB, free: 3.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002826/0.1356, allocations: 1.588 MB / 408.1 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.505e-05/0.1357, allocations: 11.94 kB / 408.1 MB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.1358, allocations: 60 kB / 408.2 MB, free: 2.082 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-05/0.1359, allocations: 40 kB / 408.2 MB, free: 2.043 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.1378, allocations: 0.9747 MB / 409.2 MB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008332/0.1462, allocations: 5.709 MB / 414.9 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008758/0.147, allocations: 376.9 kB / 415.2 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004529/0.1475, allocations: 209.6 kB / 415.5 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.1475, allocations: 8.5 kB / 415.5 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000575/0.1481, allocations: 325.2 kB / 415.8 MB, free: 10.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.265e-06/0.1481, allocations: 0 / 415.8 MB, free: 10.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003248/0.1514, allocations: 1.54 MB / 417.3 MB, free: 8.504 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.1515, allocations: 162.7 kB / 417.5 MB, free: 8.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.153, allocations: 1.122 MB / 418.6 MB, free: 7.172 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.164e-05/0.153, allocations: 33.7 kB / 418.6 MB, free: 7.133 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007309/0.1537, allocations: 0.8967 MB / 419.5 MB, free: 6.227 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001937/0.1539, allocations: 218.2 kB / 419.7 MB, free: 6.012 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002875/0.1542, allocations: 218.8 kB / 420 MB, free: 5.793 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.1544, allocations: 361.9 kB / 420.3 MB, free: 5.434 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005006/0.1549, allocations: 260.2 kB / 420.6 MB, free: 5.172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.1559, allocations: 0.9327 MB / 421.5 MB, free: 3.938 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.1574, allocations: 1.114 MB / 422.6 MB, free: 2.551 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.1574, allocations: 8 kB / 422.6 MB, free: 2.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002021/0.1594, allocations: 1.185 MB / 423.8 MB, free: 1.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.262e-05/0.1595, allocations: 42.55 kB / 423.8 MB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/0.1595, allocations: 20 kB / 423.9 MB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002214/0.1597, allocations: 73.62 kB / 423.9 MB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008285/0.1606, allocations: 271.5 kB / 424.2 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002101/0.1627, allocations: 2.52 MB / 426.7 MB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008058/0.1635, allocations: 71.86 kB / 426.8 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.962e-05/0.1636, allocations: 64 kB / 426.9 MB, free: 14.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005242/0.1641, allocations: 358.1 kB / 427.2 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.1642, allocations: 123.2 kB / 427.3 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.1653, allocations: 0.5379 MB / 427.9 MB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.066e-06/0.1653, allocations: 8 kB / 427.9 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.1653, allocations: 0 / 427.9 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.1653, allocations: 3.984 kB / 427.9 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002516/0.1679, allocations: 1.548 MB / 429.4 MB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.1679, allocations: 8.469 kB / 429.4 MB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004432/0.1683, allocations: 107.9 kB / 429.5 MB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001438/0.1684, allocations: 41.64 kB / 429.6 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.499e-05/0.1685, allocations: 16 kB / 429.6 MB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/0.1704, allocations: 2.489 MB / 432.1 MB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.1704, allocations: 4 kB / 432.1 MB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.1719, allocations: 0.9185 MB / 433 MB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/0.1722, allocations: 159.2 kB / 433.2 MB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.1723, allocations: 16 kB / 433.2 MB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004982/0.1728, allocations: 31.97 kB / 433.2 MB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.1729, allocations: 55.8 kB / 433.3 MB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.52e-05/0.1729, allocations: 20 kB / 433.3 MB, free: 7.238 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001045/0.174, allocations: 0.7199 MB / 434 MB, free: 6.512 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.174, allocations: 0 / 434 MB, free: 6.512 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001036/0.175, allocations: 304 kB / 434.3 MB, free: 6.215 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,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.0002015/0.1752, allocations: 130.4 kB / 434.4 MB, free: 6.082 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001536/0.1768, allocations: 0.9342 MB / 435.4 MB, free: 5.105 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1768, allocations: 0 / 435.4 MB, free: 5.105 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007329/0.1775, allocations: 454 kB / 435.8 MB, free: 4.637 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.1789, allocations: 310.6 kB / 436.1 MB, free: 4.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004088/0.183, allocations: 2.533 MB / 438.6 MB, free: 1.723 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006751/0.1836, allocations: 0.5922 MB / 439.2 MB, free: 1.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005066/0.1842, allocations: 162.1 kB / 439.4 MB, free: 0.9297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.1843, allocations: 80.5 kB / 439.5 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1843, allocations: 3.938 kB / 439.5 MB, free: 0.8477 MB / 398.1 MB Notification: Performance of Templates: time 0.02908/0.2134, allocations: 14.43 MB / 453.9 MB, free: 2.668 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.097616588929668]