Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 92.72 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 185.4 kB / 17.2 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002747/0.0002747, allocations: 8.031 kB / 300.7 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1118, allocations: 50.42 MB / 351.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007005/0.1189, allocations: 6.592 MB / 357.7 MB, free: 5.145 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004335/0.1233, allocations: 2.566 MB / 360.3 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006324/0.1239, allocations: 27.94 kB / 360.3 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001137/0.1251, allocations: 473.7 kB / 360.8 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000973/0.1261, allocations: 494.6 kB / 361.3 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004057/0.1265, allocations: 171.7 kB / 361.4 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001361/0.1278, allocations: 1.049 MB / 362.5 MB, free: 384 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005655/0.1284, allocations: 427.3 kB / 362.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000448/0.1289, allocations: 446.2 kB / 363.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004844/0.1294, allocations: 489.8 kB / 363.8 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.886e-05/0.1295, allocations: 60 kB / 363.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.1297, allocations: 99.97 kB / 364 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.1299, allocations: 187.1 kB / 364.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.1301, allocations: 265.1 kB / 364.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001082/0.1312, allocations: 1.332 MB / 365.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.1312, allocations: 4 kB / 365.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1312, allocations: 0 / 365.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.1312, allocations: 3.938 kB / 365.8 MB, free: 13.07 MB / 302.1 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.001898/0.1331, allocations: 1.273 MB / 367 MB, free: 11.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.1331, allocations: 8.031 kB / 367 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005011/0.1337, allocations: 174.4 kB / 367.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.1347, allocations: 0.7192 MB / 367.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.255e-05/0.1347, allocations: 74 kB / 368 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.1349, allocations: 104 kB / 368.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.1363, allocations: 0.9307 MB / 369 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.144e-05/0.1363, allocations: 11.91 kB / 369 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.556e-05/0.1364, allocations: 39.95 kB / 369.1 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.1364, allocations: 24 kB / 369.1 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.1376, allocations: 0.6597 MB / 369.8 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004606/0.1422, allocations: 3.918 MB / 373.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006648/0.1429, allocations: 458.8 kB / 374.1 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.1429, allocations: 7.984 kB / 374.1 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.1429, allocations: 38.55 kB / 374.2 MB, free: 4.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.094e-06/0.1429, allocations: 0 / 374.2 MB, free: 4.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002424/0.1454, allocations: 1.441 MB / 375.6 MB, free: 2.746 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.1454, allocations: 81.11 kB / 375.7 MB, free: 2.648 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008803/0.1463, allocations: 0.7824 MB / 376.5 MB, free: 1.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.1464, allocations: 33.7 kB / 376.5 MB, free: 1.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003588/0.1467, allocations: 0.5721 MB / 377.1 MB, free: 1.234 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.908e-05/0.1468, allocations: 157.7 kB / 377.2 MB, free: 1.078 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-05/0.1469, allocations: 12 kB / 377.3 MB, free: 1.066 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.147, allocations: 337.9 kB / 377.6 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003129/0.1473, allocations: 173.9 kB / 377.8 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004875/0.1478, allocations: 475.6 kB / 378.2 MB, free: 15.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004027/0.1482, allocations: 251.6 kB / 378.5 MB, free: 15.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1482, allocations: 0 / 378.5 MB, free: 15.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001143/0.1494, allocations: 0.775 MB / 379.2 MB, free: 14.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.1494, allocations: 10.44 kB / 379.2 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.1494, allocations: 15.98 kB / 379.3 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002048/0.1496, allocations: 65.7 kB / 379.3 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000479/0.1501, allocations: 163.7 kB / 379.5 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/0.152, allocations: 2.802 MB / 382.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004465/0.1525, allocations: 51.94 kB / 382.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/0.1525, allocations: 32 kB / 382.4 MB, free: 11.52 MB / 318.1 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 (86): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003244/0.1528, allocations: 257.6 kB / 382.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.1529, allocations: 82.97 kB / 382.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008396/0.1538, allocations: 0.4993 MB / 383.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.1538, allocations: 4 kB / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1538, allocations: 0 / 383.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.1538, allocations: 11.86 kB / 383.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.1557, allocations: 1.418 MB / 384.6 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1557, allocations: 0 / 384.6 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003087/0.156, allocations: 88.11 kB / 384.7 MB, free: 9.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001429/0.1561, allocations: 61.62 kB / 384.8 MB, free: 8.996 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.426e-05/0.1562, allocations: 8 kB / 384.8 MB, free: 8.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001765/0.158, allocations: 2.79 MB / 387.6 MB, free: 5.926 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.158, allocations: 8.031 kB / 387.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.1591, allocations: 0.8714 MB / 388.5 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000212/0.1594, allocations: 192 kB / 388.6 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.015e-05/0.1595, allocations: 15.95 kB / 388.7 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003707/0.1598, allocations: 35.97 kB / 388.7 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.998e-05/0.1599, allocations: 35.89 kB / 388.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.16, allocations: 16 kB / 388.7 MB, free: 4.648 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005849/0.1605, allocations: 0.5225 MB / 389.3 MB, free: 4.129 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1605, allocations: 0 / 389.3 MB, free: 4.129 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000723/0.1613, allocations: 204 kB / 389.5 MB, free: 3.93 MB / 318.1 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001875/0.1615, allocations: 123.7 kB / 389.6 MB, free: 3.801 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.1625, allocations: 0.6971 MB / 390.3 MB, free: 3.078 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1625, allocations: 0 / 390.3 MB, free: 3.078 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005677/0.1631, allocations: 462.5 kB / 390.7 MB, free: 2.602 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008677/0.164, allocations: 206.1 kB / 390.9 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.1665, allocations: 2.128 MB / 393.1 MB, free: 236 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005056/0.1671, allocations: 1.032 MB / 394.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003764/0.1674, allocations: 107.2 kB / 394.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.1675, allocations: 51.44 kB / 394.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1676, allocations: 0 / 394.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of Templates: time 0.01526/0.1828, allocations: 9.133 MB / 403.4 MB, free: 5.98 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches