Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009873/0.0009873, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001366/0.002353, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009038/0.0009038, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001232/0.002136, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9535/0.9535, allocations: 177.5 MB / 190 MB, free: 4.75 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1289/1.082, allocations: 53.87 MB / 243.9 MB, free: 14.8 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 245.2 MB, free: 13.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.822e-05/1.973e-05, allocations: 2.312 kB / 245.2 MB, free: 13.5 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008795/0.008815, allocations: 11.87 MB / 257.1 MB, free: 1.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005926/0.01474, allocations: 3.474 MB / 260.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.016, allocations: 47.81 kB / 260.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001415/0.01742, allocations: 0.671 MB / 261.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001616/0.01903, allocations: 0.8295 MB / 262.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006491/0.01968, allocations: 399.5 kB / 262.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002293/0.02197, allocations: 2.509 MB / 265 MB, free: 9.609 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008116/0.02279, allocations: 0.6266 MB / 265.6 MB, free: 8.922 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002121/0.02491, allocations: 1.625 MB / 267.3 MB, free: 7.273 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001028/0.02593, allocations: 0.7829 MB / 268 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003036/0.02624, allocations: 224 kB / 268.3 MB, free: 6.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003928/0.02663, allocations: 264 kB / 268.5 MB, free: 6.012 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001954/0.02683, allocations: 346.9 kB / 268.9 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005333/0.02736, allocations: 0.6238 MB / 269.5 MB, free: 5.047 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.0286, allocations: 1.409 MB / 270.9 MB, free: 3.633 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.117e-05/0.02861, allocations: 0 / 270.9 MB, free: 3.633 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.02862, allocations: 0 / 270.9 MB, free: 3.633 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.198e-05/0.02866, allocations: 4 kB / 270.9 MB, free: 3.629 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002261/0.03092, allocations: 2.479 MB / 273.4 MB, free: 1.113 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.03095, allocations: 12.62 kB / 273.4 MB, free: 1.102 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006162/0.03157, allocations: 421.7 kB / 273.8 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1084/0.14, allocations: 0.7923 MB / 274.6 MB, free: 21.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.666e-05/0.1401, allocations: 115.8 kB / 274.7 MB, free: 21.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001734/0.1403, allocations: 160.2 kB / 274.9 MB, free: 21.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.1417, allocations: 1.166 MB / 276 MB, free: 21.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.278e-05/0.1417, allocations: 16.89 kB / 276 MB, free: 21.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.201e-05/0.1418, allocations: 64.41 kB / 276.1 MB, free: 21.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.068e-05/0.1418, allocations: 38.34 kB / 276.1 MB, free: 21.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006455/0.1424, allocations: 390.2 kB / 276.5 MB, free: 21.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005248/0.1477, allocations: 4.73 MB / 281.3 MB, free: 18.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006563/0.1484, allocations: 361.3 kB / 281.6 MB, free: 18.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003808/0.1487, allocations: 252 kB / 281.9 MB, free: 18.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.915e-05/0.1488, allocations: 12.23 kB / 281.9 MB, free: 18.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.1488, allocations: 44.91 kB / 281.9 MB, free: 18.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 3.026e-06/0.1488, allocations: 0 / 281.9 MB, free: 18.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.00218/0.151, allocations: 1.239 MB / 283.2 MB, free: 18.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.795e-05/0.151, allocations: 60.56 kB / 283.2 MB, free: 18.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009712/0.152, allocations: 1.012 MB / 284.2 MB, free: 18.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.152, allocations: 41.08 kB / 284.3 MB, free: 18.03 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003075/0.1523, allocations: 0.7341 MB / 285 MB, free: 17.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.1524, allocations: 268.4 kB / 285.3 MB, free: 17.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.1526, allocations: 210.3 kB / 285.5 MB, free: 17.38 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.619e-05/0.1527, allocations: 355.3 kB / 285.8 MB, free: 17.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.1528, allocations: 97.28 kB / 285.9 MB, free: 17.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003075/0.1531, allocations: 0.6196 MB / 286.5 MB, free: 16.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006209/0.1538, allocations: 0.8251 MB / 287.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.357e-06/0.1538, allocations: 5.578 kB / 287.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0009125/0.1547, allocations: 0.7593 MB / 288.1 MB, free: 15.78 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.1547, allocations: 15.38 kB / 288.1 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.1547, allocations: 15.06 kB / 288.1 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004042/0.1551, allocations: 163.2 kB / 288.3 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005397/0.1557, allocations: 291.2 kB / 288.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/0.1572, allocations: 3.778 MB / 292.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004954/0.1576, allocations: 56.42 kB / 292.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.436e-05/0.1577, allocations: 43.59 kB / 292.5 MB, free: 12.15 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000296/0.158, allocations: 185.4 kB / 292.6 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.1581, allocations: 103.6 kB / 292.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006715/0.1588, allocations: 473 kB / 293.2 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.1588, allocations: 8.406 kB / 293.2 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1588, allocations: 0.75 kB / 293.2 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.1588, allocations: 7.359 kB / 293.2 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.1607, allocations: 1.218 MB / 294.4 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.1607, allocations: 10.81 kB / 294.5 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004239/0.1612, allocations: 148.5 kB / 294.6 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002297/0.1614, allocations: 128.5 kB / 294.7 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004606/0.1618, allocations: 180 kB / 294.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.58e-05/0.1619, allocations: 19.06 kB / 294.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/0.1631, allocations: 3.827 MB / 298.7 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1631, allocations: 3.906 kB / 298.7 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005937/0.1637, allocations: 0.7431 MB / 299.5 MB, free: 7.148 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.067e-05/0.1638, allocations: 19.78 kB / 299.5 MB, free: 7.137 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.164, allocations: 35.34 kB / 299.5 MB, free: 7.121 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.084e-05/0.1641, allocations: 63.94 kB / 299.6 MB, free: 7.094 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.1641, allocations: 15.69 kB / 299.6 MB, free: 7.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003463/0.1645, allocations: 483.2 kB / 300.1 MB, free: 6.891 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1645, allocations: 0 / 300.1 MB, free: 6.891 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007866/0.1653, allocations: 327.9 kB / 300.4 MB, free: 6.57 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * Array equations: 0 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001874/0.1654, allocations: 116.2 kB / 300.5 MB, free: 6.449 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006518/0.1661, allocations: 0.8409 MB / 301.4 MB, free: 5.629 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-05/0.1661, allocations: 21.81 kB / 301.4 MB, free: 5.605 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004134/0.1665, allocations: 0.6037 MB / 302 MB, free: 4.988 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.1678, allocations: 3.499 MB / 305.5 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01432/0.1821, allocations: 2.742 MB / 308.2 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.1823, allocations: 257 kB / 308.5 MB, free: 13.73 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005377/0.1829, allocations: 158.8 kB / 308.6 MB, free: 13.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004959/0.1834, allocations: 353.1 kB / 309 MB, free: 13.22 MB / 282.7 MB Notification: Performance of SimCode: time 1.433e-06/0.1834, allocations: 0 / 309 MB, free: 13.22 MB / 282.7 MB Notification: Performance of Templates: time 0.02633/0.2097, allocations: 19.24 MB / 328.2 MB, free: 10.36 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.10061011929065]