Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 114.3 kB / 17.75 MB, free: 5.332 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.001105/0.001105, allocations: 185.3 kB / 18.68 MB, free: 4.41 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.291/1.291, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009415/0.0009416, allocations: 51.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2248, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01184/0.2367, allocations: 11.74 MB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005427/0.2421, allocations: 3.226 MB / 416.4 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.2434, allocations: 31.94 kB / 416.4 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00202/0.2455, allocations: 0.6649 MB / 417.1 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002058/0.2476, allocations: 0.7329 MB / 417.8 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.2486, allocations: 407.4 kB / 418.2 MB, free: 8.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002644/0.2513, allocations: 2.25 MB / 420.5 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001366/0.2527, allocations: 0.985 MB / 421.5 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001153/0.2538, allocations: 0.8444 MB / 422.3 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.2551, allocations: 0.9138 MB / 423.2 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003631/0.2554, allocations: 220 kB / 423.4 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005761/0.256, allocations: 256 kB / 423.7 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003365/0.2564, allocations: 430.5 kB / 424.1 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001114/0.2575, allocations: 1.019 MB / 425.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002465/0.26, allocations: 2.682 MB / 427.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.26, allocations: 3.938 kB / 427.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.26, allocations: 0 / 427.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.4e-05/0.2601, allocations: 0 / 427.8 MB, free: 14.34 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003661/0.2637, allocations: 2.064 MB / 429.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.2638, allocations: 12.03 kB / 429.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008014/0.2646, allocations: 254.5 kB / 430.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001708/0.2663, allocations: 1.04 MB / 431.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.746e-05/0.2664, allocations: 115.5 kB / 431.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002063/0.2666, allocations: 163.8 kB / 431.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002519/0.2691, allocations: 1.487 MB / 432.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.204e-05/0.2692, allocations: 7.906 kB / 432.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.2693, allocations: 67.94 kB / 433 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.007e-05/0.2694, allocations: 40 kB / 433 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001857/0.2712, allocations: 0.9707 MB / 434 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007542/0.2788, allocations: 6.516 MB / 440.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007997/0.2796, allocations: 408.6 kB / 440.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004235/0.28, allocations: 230 kB / 441.2 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.262e-05/0.2801, allocations: 4.438 kB / 441.2 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004848/0.2806, allocations: 264.7 kB / 441.4 MB, free: 160 kB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.465e-06/0.2806, allocations: 0 / 441.4 MB, free: 160 kB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003002/0.2836, allocations: 1.762 MB / 443.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.98e-05/0.2837, allocations: 170.8 kB / 443.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/0.2852, allocations: 1.273 MB / 444.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.2853, allocations: 41.69 kB / 444.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005891/0.2859, allocations: 0.8673 MB / 445.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.286, allocations: 205.2 kB / 445.7 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002505/0.2863, allocations: 218.7 kB / 445.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.2864, allocations: 353.9 kB / 446.3 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004488/0.2869, allocations: 230.5 kB / 446.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007618/0.2877, allocations: 0.8034 MB / 447.3 MB, free: 9.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.2889, allocations: 1.118 MB / 448.4 MB, free: 8.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.289, allocations: 8 kB / 448.4 MB, free: 8.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00186/0.2908, allocations: 1.169 MB / 449.6 MB, free: 7.215 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.181e-05/0.2909, allocations: 41.73 kB / 449.6 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/0.2909, allocations: 23.94 kB / 449.7 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002198/0.2911, allocations: 69.62 kB / 449.7 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007953/0.292, allocations: 267.5 kB / 450 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/0.2938, allocations: 2.773 MB / 452.8 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008225/0.2947, allocations: 68.03 kB / 452.8 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.095e-05/0.2947, allocations: 60 kB / 452.9 MB, free: 3.633 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004504/0.2952, allocations: 357.3 kB / 453.2 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.2953, allocations: 134.4 kB / 453.4 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.2964, allocations: 0.5528 MB / 453.9 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.2964, allocations: 3.984 kB / 453.9 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2964, allocations: 0 / 453.9 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003491/0.2967, allocations: 251.3 kB / 454.2 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/0.2969, allocations: 15.98 kB / 454.2 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004863/0.2974, allocations: 27.98 kB / 454.2 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.2975, allocations: 48.38 kB / 454.3 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001279/0.2988, allocations: 0.5667 MB / 454.8 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001298/0.3001, allocations: 0.866 MB / 455.7 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003391/0.3005, allocations: 184.4 kB / 455.9 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001144/0.3016, allocations: 0.85 MB / 456.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of Backend: time 5.01e-07/0.3016, allocations: 0 / 456.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.3033, allocations: 0.8884 MB / 457.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of SimCode: time 0.004396/0.3077, allocations: 3.109 MB / 460.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of Templates: time 0.02771/0.3355, allocations: 16.01 MB / 476.7 MB, free: 11.79 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches