Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001433/0.001433, allocations: 81.86 kB / 21.42 MB, free: 3.074 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.001139/0.001139, allocations: 165.8 kB / 24.82 MB, free: 8.387 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 1.065/1.065, allocations: 177.1 MB / 205.3 MB, free: 5.16 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.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 273.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.497e-05/1.644e-05, allocations: 2.312 kB / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007368/0.007385, allocations: 7.995 MB / 281.4 MB, free: 9.137 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004284/0.01167, allocations: 2.677 MB / 284.1 MB, free: 6.449 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006639/0.01233, allocations: 35.81 kB / 284.1 MB, free: 6.414 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.01353, allocations: 0.5362 MB / 284.6 MB, free: 5.875 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008935/0.01443, allocations: 0.531 MB / 285.2 MB, free: 5.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.01483, allocations: 271.7 kB / 285.4 MB, free: 5.074 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.01589, allocations: 1.564 MB / 287 MB, free: 3.504 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004331/0.01632, allocations: 383.3 kB / 287.4 MB, free: 3.102 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007741/0.01709, allocations: 0.8923 MB / 288.3 MB, free: 2.207 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004368/0.01753, allocations: 478.5 kB / 288.7 MB, free: 1.738 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.01765, allocations: 140 kB / 288.9 MB, free: 1.602 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002296/0.01788, allocations: 180 kB / 289.1 MB, free: 1.426 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001453/0.01803, allocations: 290.9 kB / 289.3 MB, free: 1.141 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003057/0.01833, allocations: 466.8 kB / 289.8 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1097/0.128, allocations: 0.9466 MB / 290.7 MB, free: 18.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.128, allocations: 0 / 290.7 MB, free: 18.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.128, allocations: 0.7188 kB / 290.7 MB, free: 18.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.8e-05/0.1281, allocations: 0 / 290.7 MB, free: 18.98 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001852/0.1299, allocations: 1.555 MB / 292.3 MB, free: 18.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.13, allocations: 11.5 kB / 292.3 MB, free: 18.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005919/0.1305, allocations: 279.7 kB / 292.6 MB, free: 18.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008115/0.1314, allocations: 0.6759 MB / 293.3 MB, free: 17.79 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.863e-05/0.1314, allocations: 71.75 kB / 293.3 MB, free: 17.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.1315, allocations: 101.7 kB / 293.4 MB, free: 17.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009366/0.1325, allocations: 0.7746 MB / 294.2 MB, free: 17.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/0.1325, allocations: 7.5 kB / 294.2 MB, free: 17.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.723e-05/0.1325, allocations: 39.28 kB / 294.2 MB, free: 17.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.252e-05/0.1326, allocations: 25.53 kB / 294.3 MB, free: 17.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004791/0.133, allocations: 278.6 kB / 294.5 MB, free: 17.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003378/0.1364, allocations: 3.683 MB / 298.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003502/0.1368, allocations: 257.3 kB / 298.5 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000296/0.1371, allocations: 175.4 kB / 298.6 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.1371, allocations: 10.44 kB / 298.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.1371, allocations: 40.92 kB / 298.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.693e-06/0.1371, allocations: 0 / 298.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001338/0.1385, allocations: 0.8541 MB / 299.6 MB, free: 15.19 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.148e-05/0.1385, allocations: 82.3 kB / 299.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00068/0.1392, allocations: 0.7495 MB / 300.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.1392, allocations: 34.52 kB / 300.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002826/0.1395, allocations: 0.6548 MB / 301.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.46e-05/0.1395, allocations: 169.8 kB / 301.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/0.1397, allocations: 142.2 kB / 301.4 MB, free: 14.35 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1398, allocations: 0.5798 MB / 302 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.1399, allocations: 66.52 kB / 302 MB, free: 13.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002337/0.1402, allocations: 0.5096 MB / 302.5 MB, free: 13.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004457/0.1406, allocations: 0.6093 MB / 303.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.1406, allocations: 3 kB / 303.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008228/0.1414, allocations: 0.6037 MB / 303.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.1415, allocations: 8.75 kB / 303.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.1415, allocations: 10.66 kB / 303.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001931/0.1417, allocations: 81.2 kB / 303.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003569/0.142, allocations: 152.9 kB / 304 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.1433, allocations: 3.816 MB / 307.8 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003536/0.1437, allocations: 33.31 kB / 307.8 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.592e-05/0.1437, allocations: 28.8 kB / 307.9 MB, free: 8.984 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001721/0.1439, allocations: 208.3 kB / 308.1 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.144, allocations: 104.4 kB / 308.2 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004483/0.1444, allocations: 347.8 kB / 308.5 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1444, allocations: 5.625 kB / 308.5 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1444, allocations: 5.016 kB / 308.5 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.1444, allocations: 0 / 308.5 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.1456, allocations: 1.028 MB / 309.6 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1456, allocations: 1.375 kB / 309.6 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002061/0.1458, allocations: 73.03 kB / 309.6 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001421/0.1459, allocations: 70.77 kB / 309.7 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/0.1459, allocations: 11.56 kB / 309.7 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.147, allocations: 3.786 MB / 313.5 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.147, allocations: 5.5 kB / 313.5 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005612/0.1476, allocations: 0.6308 MB / 314.1 MB, free: 4.141 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.1477, allocations: 121.9 kB / 314.2 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.604e-05/0.1478, allocations: 14.47 kB / 314.3 MB, free: 4.055 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.148, allocations: 22.17 kB / 314.3 MB, free: 4.051 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.488e-05/0.1481, allocations: 43.52 kB / 314.3 MB, free: 4.039 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1481, allocations: 11.62 kB / 314.3 MB, free: 4.035 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003511/0.1485, allocations: 450.2 kB / 314.8 MB, free: 3.879 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1485, allocations: 0 / 314.8 MB, free: 3.879 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006728/0.1491, allocations: 210.6 kB / 315 MB, free: 3.855 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.000141/0.1493, allocations: 124.2 kB / 315.1 MB, free: 3.758 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005301/0.1498, allocations: 0.6531 MB / 315.8 MB, free: 3.371 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.1498, allocations: 5.719 kB / 315.8 MB, free: 3.367 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.1501, allocations: 490.2 kB / 316.2 MB, free: 2.996 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007177/0.1508, allocations: 206 kB / 316.4 MB, free: 2.934 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.1529, allocations: 1.647 MB / 318.1 MB, free: 1.941 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.153, allocations: 176.1 kB / 318.3 MB, free: 1.867 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002666/0.1533, allocations: 99.22 kB / 318.4 MB, free: 1.836 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003458/0.1536, allocations: 272.7 kB / 318.6 MB, free: 1.766 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.1536, allocations: 0 / 318.6 MB, free: 1.766 MB / 266.7 MB Notification: Performance of Templates: time 0.01695/0.1706, allocations: 11.16 MB / 329.8 MB, free: 7.402 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.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.0149139859713614]