Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.001343, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001694/0.001694, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 63.89 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.271, allocations: 50.53 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01323/0.2843, allocations: 11.77 MB / 421 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006203/0.2906, allocations: 3.246 MB / 424.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.2917, allocations: 39.88 kB / 424.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001536/0.2933, allocations: 0.6479 MB / 424.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001488/0.2948, allocations: 0.6704 MB / 425.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007753/0.2956, allocations: 403.5 kB / 426 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002146/0.2977, allocations: 2.245 MB / 428.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/0.2989, allocations: 0.985 MB / 429.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.3, allocations: 0.8521 MB / 430.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00103/0.3011, allocations: 0.91 MB / 431 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003167/0.3014, allocations: 216 kB / 431.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004334/0.3018, allocations: 256 kB / 431.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002931/0.3021, allocations: 430.4 kB / 431.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008908/0.303, allocations: 1.015 MB / 432.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002705/0.3057, allocations: 2.685 MB / 435.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3058, allocations: 4 kB / 435.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3058, allocations: 0 / 435.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.899e-05/0.3058, allocations: 4 kB / 435.6 MB, free: 7.102 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.003251/0.3091, allocations: 2.113 MB / 437.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.3091, allocations: 12.02 kB / 437.7 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007456/0.3099, allocations: 267.6 kB / 438 MB, free: 4.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001505/0.3114, allocations: 1.053 MB / 439 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.245e-05/0.3115, allocations: 115.5 kB / 439.1 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001908/0.3117, allocations: 167.8 kB / 439.3 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00233/0.314, allocations: 1.49 MB / 440.8 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.508e-05/0.314, allocations: 8 kB / 440.8 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.3142, allocations: 64 kB / 440.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.912e-05/0.3142, allocations: 40 kB / 440.9 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001797/0.316, allocations: 0.9746 MB / 441.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008311/0.3243, allocations: 6.541 MB / 448.4 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007785/0.3251, allocations: 396.1 kB / 448.8 MB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004305/0.3256, allocations: 222.1 kB / 449 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.102e-05/0.3256, allocations: 4.438 kB / 449 MB, free: 9.113 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004895/0.3261, allocations: 272.8 kB / 449.3 MB, free: 8.824 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.174e-06/0.3261, allocations: 0 / 449.3 MB, free: 8.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003169/0.3293, allocations: 1.788 MB / 451.1 MB, free: 6.945 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.3294, allocations: 162.8 kB / 451.2 MB, free: 6.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001653/0.3311, allocations: 1.277 MB / 452.5 MB, free: 5.457 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/0.3311, allocations: 37.7 kB / 452.6 MB, free: 5.414 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006617/0.3318, allocations: 0.8973 MB / 453.5 MB, free: 4.508 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/0.332, allocations: 218.2 kB / 453.7 MB, free: 4.293 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002917/0.3323, allocations: 218.8 kB / 453.9 MB, free: 4.074 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3325, allocations: 353.9 kB / 454.2 MB, free: 3.723 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004535/0.3329, allocations: 230.5 kB / 454.5 MB, free: 3.496 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008556/0.3338, allocations: 0.8112 MB / 455.3 MB, free: 2.406 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.3351, allocations: 1.114 MB / 456.4 MB, free: 1.023 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.3351, allocations: 4 kB / 456.4 MB, free: 1.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00184/0.337, allocations: 1.173 MB / 457.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.425e-05/0.3371, allocations: 49.69 kB / 457.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/0.3371, allocations: 16 kB / 457.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002559/0.3373, allocations: 70.33 kB / 457.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007418/0.3381, allocations: 271.4 kB / 458 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/0.3401, allocations: 2.773 MB / 460.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008352/0.3409, allocations: 72.02 kB / 460.8 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.609e-05/0.341, allocations: 60 kB / 460.9 MB, free: 12.23 MB / 382.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.0005332/0.3415, allocations: 361.3 kB / 461.2 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.3417, allocations: 143 kB / 461.3 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.3427, allocations: 0.5528 MB / 461.9 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-05/0.3427, allocations: 8.094 kB / 461.9 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3427, allocations: 3.984 kB / 461.9 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.3427, allocations: 3.984 kB / 461.9 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002576/0.3453, allocations: 1.87 MB / 463.8 MB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/0.3453, allocations: 11.94 kB / 463.8 MB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004103/0.3458, allocations: 103.9 kB / 463.9 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001323/0.3459, allocations: 37.7 kB / 463.9 MB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.3459, allocations: 19.98 kB / 464 MB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001776/0.3477, allocations: 2.751 MB / 466.7 MB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.3477, allocations: 7.938 kB / 466.7 MB, free: 5.941 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.349, allocations: 0.9286 MB / 467.6 MB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003683/0.3494, allocations: 256.2 kB / 467.9 MB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.3496, allocations: 19.98 kB / 467.9 MB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005002/0.3501, allocations: 27.98 kB / 467.9 MB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.3502, allocations: 55.81 kB / 468 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-05/0.3502, allocations: 20 kB / 468 MB, free: 4.551 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001102/0.3513, allocations: 0.8461 MB / 468.9 MB, free: 3.703 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3514, allocations: 0 / 468.9 MB, free: 3.703 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001147/0.3525, allocations: 304 kB / 469.2 MB, free: 3.406 MB / 382.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.0002121/0.3527, allocations: 135.1 kB / 469.3 MB, free: 3.266 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.3542, allocations: 0.9334 MB / 470.2 MB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.3542, allocations: 4 kB / 470.2 MB, free: 2.297 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006804/0.3549, allocations: 466 kB / 470.7 MB, free: 1.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.3564, allocations: 343.3 kB / 471 MB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00401/0.3604, allocations: 2.558 MB / 473.6 MB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000722/0.3611, allocations: 1.174 MB / 474.7 MB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005686/0.3617, allocations: 171.3 kB / 474.9 MB, free: 13.47 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/0.3619, allocations: 91.36 kB / 475 MB, free: 13.38 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3619, allocations: 0 / 475 MB, free: 13.38 MB / 398.1 MB Notification: Performance of Templates: time 0.02555/0.3875, allocations: 15.26 MB / 490.3 MB, free: 14.27 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches