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.0007738/0.0007738, allocations: 87.59 kB / 17.31 MB, free: 6.004 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.0008362/0.0008362, allocations: 176.2 kB / 18.21 MB, free: 5.414 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.137/1.137, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000204/0.000204, allocations: 11.94 kB / 302.1 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0716/0.07182, allocations: 50.42 MB / 352.5 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.00953/0.08139, allocations: 11.08 MB / 363.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00447/0.08588, allocations: 3.168 MB / 366.8 MB, free: 5.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000508/0.08641, allocations: 39.88 kB / 366.8 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001086/0.0875, allocations: 0.5515 MB / 367.3 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009856/0.0885, allocations: 0.5857 MB / 367.9 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005202/0.08903, allocations: 343.7 kB / 368.3 MB, free: 3.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001588/0.09062, allocations: 2.132 MB / 370.4 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009183/0.09155, allocations: 0.8346 MB / 371.2 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1274/0.219, allocations: 0.6858 MB / 371.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.2201, allocations: 0.7805 MB / 372.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004266/0.2206, allocations: 101.6 kB / 372.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005808/0.2212, allocations: 141.4 kB / 372.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000278/0.2215, allocations: 301.5 kB / 373.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.2225, allocations: 0.9063 MB / 374.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002092/0.2246, allocations: 2.11 MB / 376.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2247, allocations: 0.5312 kB / 376.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2247, allocations: 1 kB / 376.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.436e-05/0.2247, allocations: 0.5938 kB / 376.2 MB, free: 11.39 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003136/0.2279, allocations: 1.756 MB / 378 MB, free: 10.4 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.2279, allocations: 9.375 kB / 378 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008306/0.2288, allocations: 260.2 kB / 378.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001485/0.2303, allocations: 1.019 MB / 379.3 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.628e-05/0.2304, allocations: 115.3 kB / 379.4 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000186/0.2305, allocations: 167.7 kB / 379.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/0.2327, allocations: 1.504 MB / 381.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.283e-05/0.2327, allocations: 4.453 kB / 381.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001/0.2328, allocations: 64.66 kB / 381.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.778e-05/0.2329, allocations: 37.22 kB / 381.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.2345, allocations: 0.9884 MB / 382.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005523/0.24, allocations: 6.598 MB / 388.8 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006584/0.2407, allocations: 408.5 kB / 389.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003497/0.241, allocations: 223.7 kB / 389.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.327e-05/0.2411, allocations: 11.44 kB / 389.4 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004292/0.2415, allocations: 272.4 kB / 389.6 MB, free: 5.215 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.613e-06/0.2415, allocations: 0 / 389.6 MB, free: 5.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.002458/0.244, allocations: 1.792 MB / 391.4 MB, free: 4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.244, allocations: 161.5 kB / 391.6 MB, free: 3.812 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001337/0.2454, allocations: 1.275 MB / 392.9 MB, free: 3.098 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.2454, allocations: 40.73 kB / 392.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003889/0.2458, allocations: 0.8721 MB / 393.8 MB, free: 2.281 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.676e-05/0.2459, allocations: 199.6 kB / 394 MB, free: 2.113 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.67e-05/0.246, allocations: 99.78 kB / 394.1 MB, free: 2.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.754e-05/0.2461, allocations: 352.7 kB / 394.4 MB, free: 1.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003921/0.2465, allocations: 241.8 kB / 394.7 MB, free: 1.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005569/0.247, allocations: 0.8077 MB / 395.5 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.2481, allocations: 1.131 MB / 396.6 MB, free: 15.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/0.2481, allocations: 2.719 kB / 396.6 MB, free: 15.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001611/0.2497, allocations: 1.185 MB / 397.8 MB, free: 15.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.2498, allocations: 38.55 kB / 397.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.728e-05/0.2498, allocations: 19.75 kB / 397.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001752/0.25, allocations: 68.83 kB / 397.9 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006522/0.2506, allocations: 266 kB / 398.2 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/0.2522, allocations: 2.584 MB / 400.8 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007523/0.253, allocations: 67.33 kB / 400.8 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.736e-05/0.253, allocations: 68.56 kB / 400.9 MB, free: 12.38 MB / 318.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.0004441/0.2535, allocations: 365.9 kB / 401.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.2536, allocations: 129.6 kB / 401.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009266/0.2545, allocations: 0.5627 MB / 401.9 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2546, allocations: 3.688 kB / 401.9 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2546, allocations: 7.188 kB / 401.9 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.2546, allocations: 3.984 kB / 401.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002175/0.2568, allocations: 1.877 MB / 403.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.2568, allocations: 6.531 kB / 403.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003583/0.2571, allocations: 106 kB / 403.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001232/0.2573, allocations: 51.06 kB / 404 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.2573, allocations: 14.56 kB / 404 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.2588, allocations: 2.547 MB / 406.5 MB, free: 7.656 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.2588, allocations: 7 kB / 406.6 MB, free: 7.652 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.2599, allocations: 0.9426 MB / 407.5 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.2602, allocations: 261.7 kB / 407.7 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.2603, allocations: 17.44 kB / 407.8 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004814/0.2608, allocations: 32.59 kB / 407.8 MB, free: 6.766 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.684e-05/0.2609, allocations: 57.16 kB / 407.9 MB, free: 6.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.366e-05/0.2609, allocations: 19.84 kB / 407.9 MB, free: 6.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009185/0.2618, allocations: 0.8452 MB / 408.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2619, allocations: 0 / 408.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008278/0.2627, allocations: 303.7 kB / 409 MB, free: 6.234 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 Backend phase and start with SimCode phase: time 0.0001723/0.2629, allocations: 153.7 kB / 409.2 MB, free: 6.113 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.264, allocations: 0.9343 MB / 410.1 MB, free: 5.531 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.264, allocations: 384 / 410.1 MB, free: 5.531 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005504/0.2646, allocations: 458.8 kB / 410.5 MB, free: 5.074 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/0.2665, allocations: 318.9 kB / 410.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003544/0.27, allocations: 3.302 MB / 414.2 MB, free: 1.391 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006475/0.2707, allocations: 1.182 MB / 415.3 MB, free: 184 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.2709, allocations: 87.44 kB / 415.4 MB, free: 96 kB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2709, allocations: 0 / 415.4 MB, free: 96 kB / 318.1 MB Notification: Performance of Templates: time 0.02918/0.3001, allocations: 31.26 MB / 446.7 MB, free: 0.918 MB / 350.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