Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009056/0.0009057, allocations: 97.44 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001092, allocations: 207.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003171/0.0003171, allocations: 8 kB / 306.6 MB, free: 1.414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1365, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006696/0.1433, allocations: 5.741 MB / 363.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004782/0.1481, allocations: 2.266 MB / 366.1 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006927/0.1489, allocations: 19.94 kB / 366.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001326/0.1502, allocations: 422 kB / 366.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009847/0.1512, allocations: 386.9 kB / 366.9 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.1516, allocations: 139.7 kB / 367 MB, free: 4.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001245/0.1529, allocations: 0.8505 MB / 367.9 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005199/0.1534, allocations: 352.6 kB / 368.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00039/0.1538, allocations: 354.6 kB / 368.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00041/0.1542, allocations: 378.2 kB / 368.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.718e-05/0.1543, allocations: 52 kB / 369 MB, free: 2.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002425/0.1545, allocations: 87.97 kB / 369.1 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.1547, allocations: 151.2 kB / 369.2 MB, free: 2.719 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001821/0.1549, allocations: 221.2 kB / 369.4 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009648/0.1558, allocations: 1.079 MB / 370.5 MB, free: 1.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1559, allocations: 0 / 370.5 MB, free: 1.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1559, allocations: 0 / 370.5 MB, free: 1.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.1559, allocations: 0 / 370.5 MB, free: 1.414 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001743/0.1576, allocations: 1.082 MB / 371.6 MB, free: 292 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1577, allocations: 8.031 kB / 371.6 MB, free: 284 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.1581, allocations: 130.7 kB / 371.7 MB, free: 152 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2429/0.401, allocations: 0.6068 MB / 372.3 MB, free: 19.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.179e-05/0.4011, allocations: 61.59 kB / 372.4 MB, free: 19.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/0.4013, allocations: 83.06 kB / 372.5 MB, free: 19.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/0.4032, allocations: 0.7703 MB / 373.3 MB, free: 19.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.488e-05/0.4032, allocations: 3.438 kB / 373.3 MB, free: 19.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.604e-05/0.4033, allocations: 40.59 kB / 373.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-05/0.4034, allocations: 23.41 kB / 373.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.4048, allocations: 0.5251 MB / 373.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005149/0.4099, allocations: 3.365 MB / 377.2 MB, free: 16.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005237/0.4105, allocations: 231.3 kB / 377.4 MB, free: 16.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/0.4105, allocations: 2.75 kB / 377.4 MB, free: 16.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.4106, allocations: 42.02 kB / 377.5 MB, free: 16.67 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.144e-06/0.4106, allocations: 0 / 377.5 MB, free: 16.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002216/0.4128, allocations: 1.075 MB / 378.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.4128, allocations: 85.14 kB / 378.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009496/0.4138, allocations: 0.6731 MB / 379.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.4138, allocations: 31.98 kB / 379.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/0.4142, allocations: 0.4899 MB / 379.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.892e-05/0.4143, allocations: 106.3 kB / 379.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.826e-05/0.4143, allocations: 12.34 kB / 379.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.4144, allocations: 380.8 kB / 380.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000298/0.4147, allocations: 129.7 kB / 380.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004167/0.4152, allocations: 424.4 kB / 380.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003711/0.4155, allocations: 193.4 kB / 381 MB, free: 14.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.4156, allocations: 3.562 kB / 381.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001103/0.4167, allocations: 0.6221 MB / 381.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.4167, allocations: 13.55 kB / 381.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.4167, allocations: 8.781 kB / 381.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001707/0.4169, allocations: 35.72 kB / 381.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000473/0.4174, allocations: 142 kB / 381.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008037/0.4182, allocations: 1.299 MB / 383.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004454/0.4187, allocations: 40.97 kB / 383.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.894e-05/0.4187, allocations: 29.78 kB / 383.2 MB, free: 12.5 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003127/0.419, allocations: 240.4 kB / 383.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.718e-05/0.4191, allocations: 78.48 kB / 383.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007022/0.4198, allocations: 336.4 kB / 383.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.4199, allocations: 3.906 kB / 383.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.4199, allocations: 0 / 383.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.4199, allocations: 2.062 kB / 383.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001793/0.4217, allocations: 1.071 MB / 385 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4217, allocations: 2.875 kB / 385 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002747/0.422, allocations: 61.41 kB / 385 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.405e-05/0.4221, allocations: 26.78 kB / 385 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.4221, allocations: 11.55 kB / 385.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006639/0.4228, allocations: 1.283 MB / 386.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4228, allocations: 6.219 kB / 386.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009718/0.4238, allocations: 0.6492 MB / 387 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.424, allocations: 168.1 kB / 387.2 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.762e-05/0.4241, allocations: 8.688 kB / 387.2 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002983/0.4244, allocations: 22.61 kB / 387.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.047e-05/0.4245, allocations: 22.33 kB / 387.2 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.4245, allocations: 12.02 kB / 387.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006797/0.4252, allocations: 469 kB / 387.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4252, allocations: 3.938 kB / 387.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009196/0.4261, allocations: 159.8 kB / 387.8 MB, free: 9.246 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002299/0.4264, allocations: 118.2 kB / 388 MB, free: 9.148 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009785/0.4274, allocations: 477.5 kB / 388.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.4274, allocations: 0 / 388.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004014/0.4278, allocations: 245 kB / 388.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008467/0.4286, allocations: 160.1 kB / 388.8 MB, free: 8.723 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002559/0.4312, allocations: 1.743 MB / 390.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005681/0.4318, allocations: 0.9582 MB / 391.5 MB, free: 6.871 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003595/0.4322, allocations: 91.89 kB / 391.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.23e-05/0.4323, allocations: 45.78 kB / 391.6 MB, free: 6.836 MB / 302.1 MB Notification: Performance of SimCode: time 2.284e-06/0.4323, allocations: 0 / 391.6 MB, free: 6.836 MB / 302.1 MB Notification: Performance of Templates: time 0.01394/0.4462, allocations: 6.867 MB / 398.5 MB, free: 3.945 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches