Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 193 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007816/0.0007816, allocations: 95.56 kB / 299.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002312/0.0002313, allocations: 8 kB / 360.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.2103, allocations: 51.41 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.00828/0.2186, allocations: 10.8 MB / 422.9 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005668/0.2243, allocations: 3.543 MB / 426.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007914/0.2251, allocations: 43.88 kB / 426.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.2263, allocations: 0.5748 MB / 427 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001076/0.2274, allocations: 0.6245 MB / 427.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005035/0.2279, allocations: 359.7 kB / 428 MB, free: 9.832 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001342/0.2293, allocations: 2.272 MB / 430.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008204/0.2301, allocations: 0.8583 MB / 431.1 MB, free: 6.645 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007005/0.2308, allocations: 0.7503 MB / 431.9 MB, free: 5.891 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000603/0.2314, allocations: 0.8473 MB / 432.7 MB, free: 5.039 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001462/0.2316, allocations: 108 kB / 432.8 MB, free: 4.934 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000317/0.2319, allocations: 144 kB / 433 MB, free: 4.793 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.2321, allocations: 322.4 kB / 433.3 MB, free: 4.477 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005849/0.2327, allocations: 0.9537 MB / 434.2 MB, free: 3.512 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001449/0.2341, allocations: 2.646 MB / 436.9 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2341, allocations: 4 kB / 436.9 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2341, allocations: 3.984 kB / 436.9 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.846e-05/0.2342, allocations: 0 / 436.9 MB, free: 0.8477 MB / 298.7 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.002683/0.2368, allocations: 1.845 MB / 438.7 MB, free: 14.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.2369, allocations: 12.03 kB / 438.8 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000803/0.2377, allocations: 286.3 kB / 439 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001551/0.2393, allocations: 1.095 MB / 440.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.2394, allocations: 119.5 kB / 440.2 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001959/0.2396, allocations: 159.8 kB / 440.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002507/0.2421, allocations: 1.508 MB / 441.9 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.192e-05/0.2422, allocations: 7.906 kB / 441.9 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.2423, allocations: 64 kB / 442 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.024e-05/0.2423, allocations: 40 kB / 442 MB, free: 11.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001995/0.2443, allocations: 1.061 MB / 443.1 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007318/0.2516, allocations: 6.304 MB / 449.4 MB, free: 3.879 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.2531, allocations: 0.6278 MB / 450 MB, free: 3.238 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008344/0.254, allocations: 466.2 kB / 450.5 MB, free: 2.781 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.014e-05/0.254, allocations: 12.7 kB / 450.5 MB, free: 2.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.254, allocations: 47.05 kB / 450.5 MB, free: 2.715 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 2.365e-06/0.2541, allocations: 0 / 450.5 MB, free: 2.715 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.004686/0.2587, allocations: 2.458 MB / 453 MB, free: 172 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.055e-05/0.2588, allocations: 123.4 kB / 453.1 MB, free: 20 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001715/0.2606, allocations: 1.29 MB / 454.4 MB, free: 14.71 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/0.2606, allocations: 41.7 kB / 454.4 MB, free: 14.67 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005706/0.2612, allocations: 0.8453 MB / 455.3 MB, free: 13.81 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/0.2614, allocations: 260.3 kB / 455.5 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.14e-05/0.2614, allocations: 24 kB / 455.6 MB, free: 13.53 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.2616, allocations: 345.9 kB / 455.9 MB, free: 13.19 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005609/0.2621, allocations: 294.5 kB / 456.2 MB, free: 12.9 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008407/0.263, allocations: 0.7498 MB / 456.9 MB, free: 11.93 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.2645, allocations: 1.104 MB / 458 MB, free: 10.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.2645, allocations: 4 kB / 458 MB, free: 10.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002217/0.2667, allocations: 1.291 MB / 459.3 MB, free: 9.309 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.2668, allocations: 12 kB / 459.3 MB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.2668, allocations: 16 kB / 459.4 MB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004866/0.2673, allocations: 139 kB / 459.5 MB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008316/0.2681, allocations: 267.6 kB / 459.8 MB, free: 8.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003483/0.2716, allocations: 4.316 MB / 464.1 MB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009534/0.2726, allocations: 68 kB / 464.1 MB, free: 4.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.247e-05/0.2727, allocations: 52 kB / 464.2 MB, free: 4.039 MB / 330.7 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.0005785/0.2732, allocations: 361.3 kB / 464.5 MB, free: 3.676 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.2734, allocations: 134.3 kB / 464.7 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001663/0.2751, allocations: 0.8763 MB / 465.5 MB, free: 2.645 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.2751, allocations: 8 kB / 465.6 MB, free: 2.637 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.2751, allocations: 0 / 465.6 MB, free: 2.637 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.2751, allocations: 3.984 kB / 465.6 MB, free: 2.633 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003476/0.2786, allocations: 2.377 MB / 467.9 MB, free: 140 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.2786, allocations: 4 kB / 467.9 MB, free: 136 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000538/0.2792, allocations: 136.3 kB / 468.1 MB, free: 0 / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004502/0.2796, allocations: 138.6 kB / 468.2 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.743e-05/0.2797, allocations: 23.98 kB / 468.2 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003861/0.2836, allocations: 4.442 MB / 472.7 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.2836, allocations: 4 kB / 472.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002371/0.286, allocations: 1.346 MB / 474 MB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005209/0.2865, allocations: 287.3 kB / 474.3 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000219/0.2867, allocations: 16 kB / 474.3 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006724/0.2874, allocations: 55.89 kB / 474.4 MB, free: 9.191 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.2875, allocations: 60.38 kB / 474.4 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.276e-05/0.2876, allocations: 23.98 kB / 474.5 MB, free: 9.109 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001565/0.2892, allocations: 0.8664 MB / 475.3 MB, free: 8.242 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2892, allocations: 0 / 475.3 MB, free: 8.242 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001436/0.2906, allocations: 328 kB / 475.6 MB, free: 7.922 MB / 346.7 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.00026/0.2909, allocations: 151.1 kB / 475.8 MB, free: 7.766 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00199/0.2929, allocations: 1.128 MB / 476.9 MB, free: 6.602 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.2929, allocations: 4 kB / 476.9 MB, free: 6.598 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.2939, allocations: 0.716 MB / 477.6 MB, free: 5.848 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/0.2961, allocations: 341 kB / 478 MB, free: 5.512 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005727/0.3019, allocations: 3.776 MB / 481.7 MB, free: 1.652 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008806/0.3028, allocations: 1.214 MB / 483 MB, free: 420 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007081/0.3035, allocations: 179.6 kB / 483.1 MB, free: 236 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.3037, allocations: 91.42 kB / 483.2 MB, free: 148 kB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3037, allocations: 0 / 483.2 MB, free: 148 kB / 346.7 MB Notification: Performance of Templates: time 0.03064/0.3344, allocations: 16.65 MB / 499.9 MB, free: 15.71 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches