Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 109.4 kB / 17.73 MB, free: 5.344 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.001614/0.001614, allocations: 184.1 kB / 18.66 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.834/1.834, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 51.94 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1301, allocations: 46.62 MB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.3433/0.4735, allocations: 12.09 MB / 387.2 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009908/0.4834, allocations: 3.309 MB / 390.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004784/0.4883, allocations: 36.19 kB / 390.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003646/0.492, allocations: 0.6684 MB / 391.3 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0062/0.4982, allocations: 0.7208 MB / 392 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002099/0.5003, allocations: 407.6 kB / 392.4 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006882/0.5072, allocations: 2.414 MB / 394.8 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002417/0.5097, allocations: 0.9984 MB / 395.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002967/0.5127, allocations: 0.9112 MB / 396.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002264/0.515, allocations: 0.9884 MB / 397.7 MB, free: 460 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005715/0.5156, allocations: 228.4 kB / 397.9 MB, free: 460 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001297/0.5169, allocations: 270.8 kB / 398.2 MB, free: 448 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004873/0.5174, allocations: 456 kB / 398.6 MB, free: 108 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002516/0.5199, allocations: 1.08 MB / 399.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006374/0.5263, allocations: 2.825 MB / 402.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.5264, allocations: 0 / 402.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.5264, allocations: 0 / 402.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001028/0.5265, allocations: 0 / 402.5 MB, free: 14.34 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.007894/0.5344, allocations: 2.165 MB / 404.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.219e-05/0.5345, allocations: 9.625 kB / 404.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001533/0.536, allocations: 279.4 kB / 405 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002819/0.5389, allocations: 1.122 MB / 406.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.539, allocations: 113.2 kB / 406.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003418/0.5394, allocations: 169.9 kB / 406.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003844/0.5432, allocations: 1.503 MB / 407.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.718e-05/0.5433, allocations: 12.25 kB / 407.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001504/0.5435, allocations: 62.09 kB / 408 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.44e-05/0.5435, allocations: 42.14 kB / 408 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002661/0.5462, allocations: 1.045 MB / 409 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0119/0.5581, allocations: 6.229 MB / 415.3 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.56, allocations: 0.6219 MB / 415.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.5612, allocations: 467.7 kB / 416.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.694e-05/0.5613, allocations: 7.688 kB / 416.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.547e-05/0.5613, allocations: 38.75 kB / 416.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 4.128e-06/0.5613, allocations: 0 / 416.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.006788/0.5681, allocations: 2.378 MB / 418.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.5683, allocations: 110.3 kB / 418.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002523/0.5708, allocations: 1.313 MB / 420.2 MB, free: 1.945 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.899e-05/0.5709, allocations: 36.83 kB / 420.2 MB, free: 1.906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008276/0.5717, allocations: 0.8425 MB / 421.1 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003145/0.572, allocations: 260.3 kB / 421.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003555/0.5724, allocations: 210.7 kB / 421.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.5726, allocations: 345.9 kB / 421.9 MB, free: 332 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005949/0.5732, allocations: 286.5 kB / 422.1 MB, free: 44 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.5743, allocations: 0.7381 MB / 422.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001723/0.576, allocations: 1.088 MB / 424 MB, free: 13.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.576, allocations: 4 kB / 424 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002913/0.5789, allocations: 1.264 MB / 425.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.579, allocations: 8 kB / 425.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.533e-05/0.579, allocations: 16 kB / 425.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006427/0.5797, allocations: 142.7 kB / 425.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008692/0.5806, allocations: 251.6 kB / 425.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004504/0.5851, allocations: 4.634 MB / 430.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.587, allocations: 59.91 kB / 430.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.5871, allocations: 55.98 kB / 430.4 MB, free: 6.922 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0009955/0.5881, allocations: 357.4 kB / 430.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002788/0.5884, allocations: 146.2 kB / 430.9 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.5903, allocations: 0.8256 MB / 431.7 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.5903, allocations: 12.08 kB / 431.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.5903, allocations: 8.062 kB / 431.7 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.5903, allocations: 7.969 kB / 431.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004437/0.5948, allocations: 2.326 MB / 434.1 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.5948, allocations: 4 kB / 434.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006052/0.5954, allocations: 123.9 kB / 434.2 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005131/0.5959, allocations: 138.8 kB / 434.3 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.461e-05/0.596, allocations: 20 kB / 434.3 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005197/0.6012, allocations: 4.787 MB / 439.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.258e-06/0.6013, allocations: 4 kB / 439.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00307/0.6044, allocations: 1.3 MB / 440.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/0.6054, allocations: 283.3 kB / 440.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/0.6056, allocations: 20 kB / 440.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006886/0.6063, allocations: 39.97 kB / 440.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.6065, allocations: 64.36 kB / 440.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.326e-05/0.6065, allocations: 24 kB / 440.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001577/0.6081, allocations: 0.8781 MB / 441.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6081, allocations: 0 / 441.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001886/0.61, allocations: 328 kB / 442.1 MB, free: 10.59 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003448/0.6104, allocations: 139 kB / 442.2 MB, free: 10.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002334/0.6127, allocations: 1.125 MB / 443.3 MB, free: 9.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.6127, allocations: 4.062 kB / 443.3 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.6139, allocations: 0.6952 MB / 444 MB, free: 8.543 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001972/0.6159, allocations: 370.8 kB / 444.4 MB, free: 8.188 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007014/0.6229, allocations: 2.898 MB / 447.3 MB, free: 5.211 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.624, allocations: 1.217 MB / 448.5 MB, free: 3.961 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001052/0.6251, allocations: 171.6 kB / 448.7 MB, free: 3.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002485/0.6254, allocations: 95.42 kB / 448.8 MB, free: 3.695 MB / 366.1 MB Notification: Performance of SimCode: time 1.252e-06/0.6254, allocations: 0 / 448.8 MB, free: 3.695 MB / 366.1 MB Notification: Performance of Templates: time 0.04383/0.6692, allocations: 17.96 MB / 466.7 MB, free: 1.707 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches