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.001597/0.001597, allocations: 110.3 kB / 17.75 MB, free: 5.355 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.001765/0.001765, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.346/1.346, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009583/0.0009583, allocations: 55.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2146/0.2156, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01204/0.2276, allocations: 12.15 MB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005247/0.2329, allocations: 3.276 MB / 416.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006811/0.2336, allocations: 35.94 kB / 416.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.2351, allocations: 0.7023 MB / 417.6 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001467/0.2366, allocations: 0.7755 MB / 418.4 MB, free: 7.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006639/0.2372, allocations: 403.5 kB / 418.8 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00207/0.2393, allocations: 2.409 MB / 421.2 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.2405, allocations: 0.9852 MB / 422.2 MB, free: 4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.2415, allocations: 0.9183 MB / 423.1 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009118/0.2424, allocations: 0.98 MB / 424.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002534/0.2427, allocations: 235.9 kB / 424.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004536/0.2432, allocations: 264 kB / 424.5 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003103/0.2435, allocations: 462.3 kB / 425 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008467/0.2443, allocations: 1.073 MB / 426.1 MB, free: 76 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002275/0.2466, allocations: 2.826 MB / 428.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2466, allocations: 3.938 kB / 428.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2466, allocations: 4 kB / 428.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.645e-05/0.2467, allocations: 0 / 428.9 MB, free: 13.23 MB / 350.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.003473/0.2502, allocations: 2.162 MB / 431.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.2502, allocations: 8.031 kB / 431.1 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009316/0.2511, allocations: 278.4 kB / 431.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001689/0.2529, allocations: 1.13 MB / 432.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.388e-05/0.2529, allocations: 115.5 kB / 432.6 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002155/0.2532, allocations: 163.8 kB / 432.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.2557, allocations: 1.512 MB / 434.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.419e-05/0.2557, allocations: 11.91 kB / 434.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.2559, allocations: 64 kB / 434.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.939e-05/0.2559, allocations: 36 kB / 434.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/0.2579, allocations: 1.049 MB / 435.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007196/0.2652, allocations: 6.226 MB / 441.6 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/0.2667, allocations: 0.6165 MB / 442.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000933/0.2676, allocations: 455.9 kB / 442.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.036e-05/0.2677, allocations: 12.55 kB / 442.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.2677, allocations: 43.12 kB / 442.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.384e-06/0.2677, allocations: 0 / 442.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004634/0.2724, allocations: 2.368 MB / 445.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.2724, allocations: 111.5 kB / 445.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001592/0.274, allocations: 1.31 MB / 446.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.426e-05/0.2741, allocations: 37.7 kB / 446.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005335/0.2746, allocations: 0.8453 MB / 447.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.2748, allocations: 260.3 kB / 447.7 MB, free: 9.797 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002684/0.2751, allocations: 206.7 kB / 447.9 MB, free: 9.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.2752, allocations: 357.9 kB / 448.2 MB, free: 9.234 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005811/0.2758, allocations: 278.5 kB / 448.5 MB, free: 8.961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008247/0.2766, allocations: 0.7342 MB / 449.2 MB, free: 8.016 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.2781, allocations: 1.088 MB / 450.3 MB, free: 6.715 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.2781, allocations: 12 kB / 450.3 MB, free: 6.703 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002271/0.2804, allocations: 1.26 MB / 451.6 MB, free: 5.426 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.2804, allocations: 12 kB / 451.6 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.2804, allocations: 19.94 kB / 451.6 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000483/0.2809, allocations: 142.7 kB / 451.8 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008361/0.2818, allocations: 251.6 kB / 452 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003611/0.2854, allocations: 4.65 MB / 456.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008376/0.2863, allocations: 55.88 kB / 456.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.89e-05/0.2863, allocations: 63.94 kB / 456.8 MB, free: 15.81 MB / 382.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.0004946/0.2868, allocations: 353.5 kB / 457.1 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001868/0.287, allocations: 142.3 kB / 457.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/0.2888, allocations: 0.8218 MB / 458.1 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.2888, allocations: 3.984 kB / 458.1 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.2888, allocations: 3.938 kB / 458.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003726/0.2892, allocations: 271.3 kB / 458.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.2893, allocations: 16 kB / 458.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006036/0.29, allocations: 39.95 kB / 458.4 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.2901, allocations: 56.52 kB / 458.5 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00211/0.2922, allocations: 0.8429 MB / 459.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001797/0.294, allocations: 1.156 MB / 460.5 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004831/0.2945, allocations: 265.1 kB / 460.7 MB, free: 11.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001165/0.2957, allocations: 0.8742 MB / 461.6 MB, free: 10.91 MB / 382.1 MB Notification: Performance of Backend: time 3.31e-07/0.2957, allocations: 0 / 461.6 MB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001881/0.2976, allocations: 1.003 MB / 462.6 MB, free: 9.852 MB / 382.1 MB Notification: Performance of SimCode: time 0.004604/0.3022, allocations: 3.385 MB / 466 MB, free: 6.41 MB / 382.1 MB Notification: Performance of Templates: time 0.03151/0.3337, allocations: 18.64 MB / 484.6 MB, free: 3.957 MB / 398.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