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.0007669/0.0007669, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009442/0.001711, allocations: 449.7 kB / 10.37 MB, free: 324 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.0006783/0.0006783, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008144/0.001493, allocations: 463.6 kB / 11.72 MB, free: 2.453 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.9495/0.9495, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08465/1.034, allocations: 53.86 MB / 243.7 MB, free: 14.91 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.263e-06/1.263e-06, allocations: 0 / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.646e-05/1.772e-05, allocations: 2.312 kB / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008636/0.008653, allocations: 11.88 MB / 256.9 MB, free: 1.703 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00481/0.01346, allocations: 3.467 MB / 260.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00065/0.01411, allocations: 43.81 kB / 260.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001003/0.01512, allocations: 0.6671 MB / 261.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009977/0.01611, allocations: 0.8295 MB / 261.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004729/0.01659, allocations: 399.5 kB / 262.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00305/0.01964, allocations: 2.505 MB / 264.8 MB, free: 9.766 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008245/0.02046, allocations: 0.6305 MB / 265.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001861/0.02232, allocations: 1.625 MB / 267.1 MB, free: 7.426 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000985/0.02331, allocations: 0.7946 MB / 267.9 MB, free: 6.629 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002832/0.02359, allocations: 224 kB / 268.1 MB, free: 6.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004413/0.02403, allocations: 256 kB / 268.3 MB, free: 6.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002092/0.02424, allocations: 350.8 kB / 268.7 MB, free: 5.816 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005871/0.02483, allocations: 0.62 MB / 269.3 MB, free: 5.195 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001483/0.02631, allocations: 1.413 MB / 270.7 MB, free: 3.777 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.368e-05/0.02632, allocations: 0 / 270.7 MB, free: 3.777 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.02633, allocations: 3.938 kB / 270.7 MB, free: 3.773 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.397e-05/0.02635, allocations: 0 / 270.7 MB, free: 3.773 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.002079/0.02843, allocations: 2.475 MB / 273.2 MB, free: 1.262 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.02846, allocations: 8.625 kB / 273.2 MB, free: 1.254 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000538/0.029, allocations: 421.7 kB / 273.6 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1092/0.1382, allocations: 0.7963 MB / 274.4 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.1383, allocations: 113.9 kB / 274.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002439/0.1386, allocations: 159.5 kB / 274.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.1399, allocations: 1.165 MB / 275.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.102e-05/0.1399, allocations: 11.62 kB / 275.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.14, allocations: 62.66 kB / 275.9 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.71e-05/0.14, allocations: 38.12 kB / 275.9 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006063/0.1406, allocations: 400.6 kB / 276.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005007/0.1456, allocations: 4.732 MB / 281.1 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.1463, allocations: 362.8 kB / 281.4 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003332/0.1466, allocations: 248.9 kB / 281.7 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.829e-05/0.1466, allocations: 16.06 kB / 281.7 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.1466, allocations: 39.3 kB / 281.7 MB, free: 9.473 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.415e-06/0.1466, allocations: 1.719 kB / 281.7 MB, free: 9.473 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.002001/0.1486, allocations: 1.228 MB / 282.9 MB, free: 9.148 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.123e-05/0.1487, allocations: 59.81 kB / 283 MB, free: 9.086 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008682/0.1495, allocations: 0.9995 MB / 284 MB, free: 8.898 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.1496, allocations: 39.45 kB / 284 MB, free: 8.867 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002856/0.1498, allocations: 0.7418 MB / 284.8 MB, free: 8.418 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/0.15, allocations: 264.8 kB / 285 MB, free: 8.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.1501, allocations: 214.3 kB / 285.2 MB, free: 8.219 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.038e-05/0.1502, allocations: 357.1 kB / 285.6 MB, free: 7.914 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.1503, allocations: 99.28 kB / 285.7 MB, free: 7.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002772/0.1506, allocations: 0.6132 MB / 286.3 MB, free: 7.289 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005347/0.1511, allocations: 0.7832 MB / 287.1 MB, free: 6.738 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.919e-06/0.1511, allocations: 4.125 kB / 287.1 MB, free: 6.738 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0008042/0.1519, allocations: 0.7556 MB / 287.8 MB, free: 6.656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.152, allocations: 11.12 kB / 287.9 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/0.152, allocations: 23.34 kB / 287.9 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003555/0.1523, allocations: 160.3 kB / 288 MB, free: 6.617 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005368/0.1529, allocations: 283.2 kB / 288.3 MB, free: 6.617 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001283/0.1542, allocations: 3.79 MB / 292.1 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004234/0.1546, allocations: 50.91 kB / 292.2 MB, free: 3.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.951e-05/0.1546, allocations: 50.66 kB / 292.2 MB, free: 3.078 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.0002024/0.1548, allocations: 189.8 kB / 292.4 MB, free: 2.949 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.82e-05/0.1549, allocations: 96.81 kB / 292.5 MB, free: 2.949 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004652/0.1554, allocations: 473.1 kB / 292.9 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-06/0.1554, allocations: 7.031 kB / 292.9 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1554, allocations: 3.375 kB / 293 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1554, allocations: 3.375 kB / 293 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001303/0.1567, allocations: 1.227 MB / 294.2 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1567, allocations: 7.562 kB / 294.2 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003306/0.157, allocations: 147.5 kB / 294.3 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.1572, allocations: 125.3 kB / 294.5 MB, free: 2.398 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003144/0.1575, allocations: 165.8 kB / 294.6 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.1575, allocations: 23.03 kB / 294.6 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001342/0.1589, allocations: 3.837 MB / 298.5 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1589, allocations: 6.969 kB / 298.5 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006265/0.1595, allocations: 0.7373 MB / 299.2 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.141e-05/0.1596, allocations: 17.28 kB / 299.2 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.1598, allocations: 32 kB / 299.3 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.261e-05/0.1599, allocations: 62.23 kB / 299.3 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.1599, allocations: 27.55 kB / 299.4 MB, free: 14.5 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003279/0.1603, allocations: 476.5 kB / 299.8 MB, free: 14.45 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1603, allocations: 0 / 299.8 MB, free: 14.45 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007122/0.161, allocations: 326.7 kB / 300.1 MB, free: 14.45 MB / 282.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.000166/0.1611, allocations: 123.5 kB / 300.3 MB, free: 14.38 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007018/0.1618, allocations: 0.82 MB / 301.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.54e-05/0.1619, allocations: 21.59 kB / 301.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003402/0.1622, allocations: 0.5547 MB / 301.7 MB, free: 13.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007645/0.163, allocations: 467 kB / 302.1 MB, free: 13.61 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.1773, allocations: 2.735 MB / 304.8 MB, free: 11.72 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/0.1776, allocations: 259.2 kB / 305.1 MB, free: 11.52 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004964/0.1781, allocations: 164.7 kB / 305.3 MB, free: 11.39 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004799/0.1785, allocations: 350.1 kB / 305.6 MB, free: 11.1 MB / 282.7 MB Notification: Performance of SimCode: time 1.302e-06/0.1785, allocations: 0 / 305.6 MB, free: 11.1 MB / 282.7 MB Notification: Performance of Templates: time 0.02573/0.2043, allocations: 19.68 MB / 325.3 MB, free: 8.023 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.068408931605518]