Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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_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_4.0.0_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_4.0.0_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.001005/0.001005, allocations: 91.64 kB / 17.31 MB, free: 6.531 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.001062/0.001062, allocations: 176 kB / 18.21 MB, free: 5.684 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.12/1.12, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002045/0.0002045, allocations: 11.94 kB / 302.1 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07266/0.07288, allocations: 50.41 MB / 352.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009841/0.08276, allocations: 11.47 MB / 364 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003988/0.08677, allocations: 3.222 MB / 367.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004531/0.08724, allocations: 39.88 kB / 367.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001098/0.08834, allocations: 0.5748 MB / 367.8 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009957/0.08936, allocations: 0.6284 MB / 368.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000503/0.08987, allocations: 355.6 kB / 368.8 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001726/0.09161, allocations: 2.279 MB / 371.1 MB, free: 1.047 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009265/0.09254, allocations: 0.8427 MB / 371.9 MB, free: 164 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1199/0.2124, allocations: 0.7436 MB / 372.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008358/0.2133, allocations: 0.8451 MB / 373.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001933/0.2135, allocations: 106.9 kB / 373.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003215/0.2138, allocations: 147 kB / 373.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.214, allocations: 324.1 kB / 374 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006643/0.2147, allocations: 0.9588 MB / 375 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001841/0.2165, allocations: 2.222 MB / 377.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2166, allocations: 0.6875 kB / 377.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2166, allocations: 1 kB / 377.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.467e-05/0.2166, allocations: 0 / 377.2 MB, free: 11.25 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002504/0.2191, allocations: 1.846 MB / 379.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.2191, allocations: 8.438 kB / 379.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007242/0.2199, allocations: 284.3 kB / 379.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.2212, allocations: 1.107 MB / 380.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.003e-05/0.2213, allocations: 119.8 kB / 380.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001757/0.2214, allocations: 160.9 kB / 380.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002112/0.2236, allocations: 1.521 MB / 382.3 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.338e-05/0.2236, allocations: 10.12 kB / 382.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.2237, allocations: 64.5 kB / 382.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.697e-05/0.2237, allocations: 42.31 kB / 382.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.2254, allocations: 1.072 MB / 383.5 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005509/0.2309, allocations: 6.312 MB / 389.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.2323, allocations: 0.6316 MB / 390.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007507/0.233, allocations: 468 kB / 390.9 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.2331, allocations: 11.81 kB / 390.9 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.593e-05/0.2331, allocations: 41.81 kB / 390.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 1.683e-06/0.2331, allocations: 1.531 kB / 390.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.003812/0.2369, allocations: 2.457 MB / 393.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.237, allocations: 111.1 kB / 393.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.2383, allocations: 1.305 MB / 394.8 MB, free: 2.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.2383, allocations: 40.45 kB / 394.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003479/0.2387, allocations: 0.8524 MB / 395.7 MB, free: 1.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.2388, allocations: 258.6 kB / 395.9 MB, free: 1.539 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.947e-05/0.2389, allocations: 93.34 kB / 396 MB, free: 1.473 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.264e-05/0.239, allocations: 352.2 kB / 396.4 MB, free: 1.133 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004981/0.2395, allocations: 296.5 kB / 396.6 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006153/0.2401, allocations: 0.748 MB / 397.4 MB, free: 248 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001321/0.2414, allocations: 1.117 MB / 398.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.2414, allocations: 5.219 kB / 398.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001969/0.2434, allocations: 1.299 MB / 399.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.2434, allocations: 13.81 kB / 399.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.2434, allocations: 14.16 kB / 399.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004043/0.2439, allocations: 152.8 kB / 400 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006816/0.2445, allocations: 255.4 kB / 400.2 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003132/0.2477, allocations: 4.334 MB / 404.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006868/0.2484, allocations: 56.61 kB / 404.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.848e-05/0.2485, allocations: 63.52 kB / 404.7 MB, free: 10.34 MB / 318.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.0004217/0.2489, allocations: 356.4 kB / 405 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.249, allocations: 136.3 kB / 405.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001519/0.2506, allocations: 0.8694 MB / 406 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.2506, allocations: 10.5 kB / 406.1 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.2506, allocations: 0 / 406.1 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2506, allocations: 3.984 kB / 406.1 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003221/0.2538, allocations: 2.375 MB / 408.4 MB, free: 7.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.2538, allocations: 11.88 kB / 408.4 MB, free: 7.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005081/0.2544, allocations: 129.2 kB / 408.6 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003747/0.2547, allocations: 141.5 kB / 408.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.963e-05/0.2548, allocations: 20 kB / 408.7 MB, free: 7.227 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003412/0.2582, allocations: 4.461 MB / 413.2 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.2582, allocations: 7.984 kB / 413.2 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.2603, allocations: 1.341 MB / 414.5 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003257/0.2606, allocations: 291.3 kB / 414.8 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000136/0.2608, allocations: 16 kB / 414.8 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005597/0.2613, allocations: 43.97 kB / 414.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.2614, allocations: 69.95 kB / 414.9 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.532e-05/0.2615, allocations: 23.98 kB / 415 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00103/0.2625, allocations: 0.8766 MB / 415.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2625, allocations: 0 / 415.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009074/0.2634, allocations: 328 kB / 416.2 MB, free: 15.34 MB / 334.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.0001817/0.2636, allocations: 138 kB / 416.3 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.2652, allocations: 1.144 MB / 417.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2652, allocations: 4.062 kB / 417.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000878/0.2661, allocations: 0.7155 MB / 418.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/0.2681, allocations: 346.4 kB / 418.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004548/0.2726, allocations: 3.802 MB / 422.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006688/0.2733, allocations: 1.214 MB / 423.5 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.2735, allocations: 95.42 kB / 423.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2735, allocations: 0 / 423.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of Templates: time 0.03477/0.3083, allocations: 40.63 MB / 464.2 MB, free: 15.24 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches