Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 97.64 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.001075/0.001075, allocations: 187.3 kB / 17.2 MB, free: 5.91 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.323/1.323, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003094/0.0003097, allocations: 6.469 kB / 300.7 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1008, allocations: 50.43 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006233/0.1071, allocations: 5.722 MB / 356.9 MB, free: 5.996 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003895/0.111, allocations: 2.242 MB / 359.1 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005542/0.1116, allocations: 16 kB / 359.1 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.1127, allocations: 422 kB / 359.5 MB, free: 3.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008075/0.1135, allocations: 398.8 kB / 359.9 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003226/0.1139, allocations: 127.9 kB / 360.1 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001115/0.115, allocations: 0.8506 MB / 360.9 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004786/0.1155, allocations: 344.6 kB / 361.2 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00034/0.1158, allocations: 354.6 kB / 361.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003731/0.1162, allocations: 382.2 kB / 362 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.7e-05/0.1163, allocations: 51.94 kB / 362 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002063/0.1165, allocations: 91.97 kB / 362.1 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.1166, allocations: 143.4 kB / 362.2 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.1168, allocations: 221.2 kB / 362.5 MB, free: 384 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008218/0.1176, allocations: 1.075 MB / 363.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.1176, allocations: 0 / 363.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1176, allocations: 0 / 363.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1177, allocations: 3.844 kB / 363.5 MB, free: 15.29 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.001541/0.1192, allocations: 1.091 MB / 364.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.1192, allocations: 8.031 kB / 364.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003339/0.1196, allocations: 130.6 kB / 364.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008311/0.1204, allocations: 0.6173 MB / 365.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.26e-05/0.1205, allocations: 58 kB / 365.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.714e-05/0.1206, allocations: 80 kB / 365.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.1218, allocations: 0.7715 MB / 366.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.1218, allocations: 3.906 kB / 366.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.202e-05/0.1219, allocations: 39.94 kB / 366.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.1219, allocations: 23.95 kB / 366.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009332/0.1228, allocations: 0.5309 MB / 366.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00372/0.1266, allocations: 3.352 MB / 370.2 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004451/0.127, allocations: 236.7 kB / 370.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.1271, allocations: 4 kB / 370.5 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.1271, allocations: 30.56 kB / 370.5 MB, free: 7.977 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.703e-06/0.1271, allocations: 0 / 370.5 MB, free: 7.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001911/0.129, allocations: 1.073 MB / 371.6 MB, free: 6.828 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.1291, allocations: 81.34 kB / 371.6 MB, free: 6.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007463/0.1298, allocations: 0.6762 MB / 372.3 MB, free: 6.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.1299, allocations: 33.69 kB / 372.4 MB, free: 6.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003126/0.1302, allocations: 498.2 kB / 372.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.328e-05/0.1303, allocations: 114.5 kB / 373 MB, free: 5.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.807e-05/0.1303, allocations: 12 kB / 373 MB, free: 5.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1304, allocations: 378.8 kB / 373.3 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002571/0.1307, allocations: 125.2 kB / 373.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004319/0.1311, allocations: 430.1 kB / 373.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003297/0.1315, allocations: 191.9 kB / 374.1 MB, free: 4.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1315, allocations: 7.938 kB / 374.1 MB, free: 4.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00092/0.1324, allocations: 0.6148 MB / 374.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.1324, allocations: 8 kB / 374.7 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.1325, allocations: 15.95 kB / 374.7 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001505/0.1326, allocations: 40.88 kB / 374.8 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004096/0.133, allocations: 144.1 kB / 374.9 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000842/0.1339, allocations: 1.292 MB / 376.2 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/0.1343, allocations: 40.05 kB / 376.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.313e-05/0.1343, allocations: 28 kB / 376.3 MB, free: 1.812 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.000272/0.1346, allocations: 233.7 kB / 376.5 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.306e-05/0.1347, allocations: 75.05 kB / 376.6 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000599/0.1353, allocations: 341.8 kB / 376.9 MB, free: 1.156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1353, allocations: 0 / 376.9 MB, free: 1.156 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.1353, allocations: 4 kB / 376.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.1353, allocations: 4 kB / 376.9 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.1367, allocations: 1.079 MB / 378 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1367, allocations: 0 / 378 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002554/0.137, allocations: 68.06 kB / 378 MB, free: 15.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.403e-05/0.1371, allocations: 20.84 kB / 378.1 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.1371, allocations: 8 kB / 378.1 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007457/0.1379, allocations: 1.288 MB / 379.4 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1379, allocations: 4.031 kB / 379.4 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008348/0.1387, allocations: 0.6537 MB / 380 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001651/0.1389, allocations: 156.3 kB / 380.2 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.329e-05/0.139, allocations: 11.98 kB / 380.2 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.1393, allocations: 23.98 kB / 380.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.82e-05/0.1393, allocations: 27.91 kB / 380.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.1394, allocations: 12 kB / 380.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000498/0.1399, allocations: 463 kB / 380.7 MB, free: 13.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1399, allocations: 0 / 380.7 MB, free: 13.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005962/0.1405, allocations: 152 kB / 380.8 MB, free: 12.88 MB / 318.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.0001976/0.1407, allocations: 135.6 kB / 381 MB, free: 12.74 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008199/0.1415, allocations: 472.3 kB / 381.4 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.1415, allocations: 0 / 381.4 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.1419, allocations: 257.8 kB / 381.7 MB, free: 12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007806/0.1427, allocations: 162.1 kB / 381.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002237/0.1449, allocations: 1.73 MB / 383.6 MB, free: 10.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000553/0.1455, allocations: 0.9608 MB / 384.5 MB, free: 9.074 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003151/0.1458, allocations: 85.94 kB / 384.6 MB, free: 8.988 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.242e-05/0.1459, allocations: 43.44 kB / 384.7 MB, free: 8.945 MB / 318.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1459, allocations: 0 / 384.7 MB, free: 8.945 MB / 318.1 MB Notification: Performance of Templates: time 0.01284/0.1587, allocations: 6.849 MB / 391.5 MB, free: 2.176 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches