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.00125/0.00125, allocations: 113 kB / 17.07 MB, free: 6.004 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.001878/0.001878, allocations: 195 kB / 18 MB, free: 5.086 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.308/1.308, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001095/0.001095, allocations: 47.92 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2441, allocations: 49.42 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008032/0.2522, allocations: 7.136 MB / 407.9 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00465/0.2568, allocations: 2.348 MB / 410.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008284/0.2577, allocations: 19.94 kB / 410.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001642/0.2594, allocations: 0.5204 MB / 410.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001251/0.2606, allocations: 409 kB / 411.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005141/0.2612, allocations: 199.8 kB / 411.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001417/0.2626, allocations: 1.21 MB / 412.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006899/0.2633, allocations: 0.4959 MB / 413 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000584/0.2639, allocations: 470.1 kB / 413.5 MB, free: 12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005857/0.2645, allocations: 0.49 MB / 414 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001244/0.2646, allocations: 112 kB / 414.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002707/0.2649, allocations: 156 kB / 414.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001978/0.2651, allocations: 223.2 kB / 414.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004776/0.2656, allocations: 0.5482 MB / 415 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001323/0.2669, allocations: 1.425 MB / 416.5 MB, free: 9.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2669, allocations: 0 / 416.5 MB, free: 9.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2669, allocations: 3.938 kB / 416.5 MB, free: 9.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.535e-05/0.267, allocations: 0 / 416.5 MB, free: 9.039 MB / 334.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.002003/0.269, allocations: 1.254 MB / 417.7 MB, free: 7.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/0.269, allocations: 15.89 kB / 417.7 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000533/0.2696, allocations: 143.7 kB / 417.9 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.2707, allocations: 0.6416 MB / 418.5 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.271e-05/0.2707, allocations: 62.38 kB / 418.6 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.2709, allocations: 84.38 kB / 418.7 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.2721, allocations: 0.7754 MB / 419.4 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/0.2721, allocations: 11.91 kB / 419.4 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.866e-05/0.2722, allocations: 32 kB / 419.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.2722, allocations: 23.94 kB / 419.5 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009881/0.2732, allocations: 0.5191 MB / 420 MB, free: 5.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003874/0.2771, allocations: 3.36 MB / 423.4 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004716/0.2776, allocations: 238.2 kB / 423.6 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00023/0.2778, allocations: 112.8 kB / 423.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.2778, allocations: 7.938 kB / 423.7 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.2779, allocations: 30.56 kB / 423.8 MB, free: 1.395 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 2.354e-06/0.2779, allocations: 0 / 423.8 MB, free: 1.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002005/0.2799, allocations: 1.056 MB / 424.8 MB, free: 268 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.569e-05/0.28, allocations: 81.34 kB / 424.9 MB, free: 168 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008893/0.2809, allocations: 0.7387 MB / 425.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.2809, allocations: 33.7 kB / 425.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003142/0.2812, allocations: 498.2 kB / 426.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.978e-05/0.2813, allocations: 106.5 kB / 426.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.2815, allocations: 110.2 kB / 426.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.2816, allocations: 378.8 kB / 426.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002504/0.2819, allocations: 125.2 kB / 426.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004395/0.2823, allocations: 426.1 kB / 427.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007252/0.2831, allocations: 0.5675 MB / 427.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.2831, allocations: 4 kB / 427.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009884/0.2841, allocations: 0.6114 MB / 428.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.2841, allocations: 12 kB / 428.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.2841, allocations: 12 kB / 428.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001615/0.2843, allocations: 32.84 kB / 428.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004128/0.2847, allocations: 143.7 kB / 428.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009799/0.2857, allocations: 1.386 MB / 430 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004026/0.2861, allocations: 35.97 kB / 430.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.543e-05/0.2862, allocations: 36.12 kB / 430.1 MB, free: 10.49 MB / 350.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000285/0.2865, allocations: 237.5 kB / 430.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.2866, allocations: 71.06 kB / 430.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006244/0.2872, allocations: 325.6 kB / 430.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.2872, allocations: 0 / 430.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2872, allocations: 8 kB / 430.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2873, allocations: 3.938 kB / 430.7 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.2888, allocations: 1.088 MB / 431.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.2888, allocations: 4 kB / 431.8 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002577/0.2891, allocations: 59.91 kB / 431.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.793e-05/0.2891, allocations: 20.84 kB / 431.9 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.2892, allocations: 8 kB / 431.9 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008803/0.2901, allocations: 1.375 MB / 433.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.2901, allocations: 8.188 kB / 433.3 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008086/0.2909, allocations: 0.5569 MB / 433.8 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002126/0.2911, allocations: 172.3 kB / 434 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.622e-05/0.2912, allocations: 11.94 kB / 434 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003131/0.2915, allocations: 19.97 kB / 434 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.432e-05/0.2916, allocations: 27.92 kB / 434.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.2916, allocations: 12 kB / 434.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006414/0.2923, allocations: 0.5029 MB / 434.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.2923, allocations: 0 / 434.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006393/0.2929, allocations: 159.9 kB / 434.7 MB, free: 5.535 MB / 350.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0002079/0.2932, allocations: 133.4 kB / 434.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008517/0.294, allocations: 462.9 kB / 435.3 MB, free: 4.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.294, allocations: 0 / 435.3 MB, free: 4.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003528/0.2944, allocations: 228.7 kB / 435.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008508/0.2953, allocations: 194.4 kB / 435.7 MB, free: 4.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.2974, allocations: 1.412 MB / 437.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.2979, allocations: 0.9411 MB / 438.1 MB, free: 2.078 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002872/0.2982, allocations: 90.02 kB / 438.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.2984, allocations: 47.44 kB / 438.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2984, allocations: 0 / 438.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of Templates: time 0.02407/0.3225, allocations: 8.277 MB / 446.5 MB, free: 9.77 MB / 366.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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