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.00119/0.00119, allocations: 115.5 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 204.6 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 63.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2612, allocations: 50.55 MB / 409.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01149/0.2727, allocations: 11.76 MB / 421 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006268/0.279, allocations: 3.246 MB / 424.3 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001468/0.2805, allocations: 39.88 kB / 424.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001801/0.2824, allocations: 0.6689 MB / 425 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001634/0.284, allocations: 0.7251 MB / 425.7 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007066/0.2847, allocations: 403.5 kB / 426.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002157/0.2869, allocations: 2.257 MB / 428.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.288, allocations: 0.9849 MB / 429.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009698/0.289, allocations: 0.856 MB / 430.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007969/0.2898, allocations: 0.9178 MB / 431.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002079/0.29, allocations: 216 kB / 431.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003665/0.2904, allocations: 256 kB / 431.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000276/0.2907, allocations: 430.4 kB / 432 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007893/0.2915, allocations: 1.015 MB / 433 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002155/0.2936, allocations: 2.678 MB / 435.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2936, allocations: 0 / 435.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2936, allocations: 0 / 435.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.765e-05/0.2937, allocations: 0 / 435.7 MB, free: 7.176 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.002887/0.2966, allocations: 2.072 MB / 437.7 MB, free: 5.039 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.2966, allocations: 8.031 kB / 437.8 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006847/0.2973, allocations: 250.5 kB / 438 MB, free: 4.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/0.2989, allocations: 1.044 MB / 439 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.766e-05/0.299, allocations: 111.5 kB / 439.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000197/0.2992, allocations: 167.8 kB / 439.3 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/0.3014, allocations: 1.483 MB / 440.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.961e-05/0.3015, allocations: 11.84 kB / 440.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.3016, allocations: 64 kB / 440.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.087e-05/0.3016, allocations: 39.98 kB / 440.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.3033, allocations: 0.9747 MB / 441.9 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00695/0.3103, allocations: 6.527 MB / 448.4 MB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007282/0.311, allocations: 392.1 kB / 448.8 MB, free: 9.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003792/0.3114, allocations: 226.1 kB / 449 MB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.937e-05/0.3115, allocations: 8.438 kB / 449 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004386/0.3119, allocations: 264.8 kB / 449.3 MB, free: 8.988 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.255e-06/0.3119, allocations: 0 / 449.3 MB, free: 8.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.002843/0.3148, allocations: 1.765 MB / 451.1 MB, free: 7.129 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.202e-05/0.3149, allocations: 166.8 kB / 451.2 MB, free: 6.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/0.3163, allocations: 1.277 MB / 452.5 MB, free: 5.637 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/0.3164, allocations: 33.7 kB / 452.5 MB, free: 5.598 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000583/0.317, allocations: 0.8712 MB / 453.4 MB, free: 4.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.3171, allocations: 213.2 kB / 453.6 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002465/0.3174, allocations: 214.6 kB / 453.8 MB, free: 4.289 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3175, allocations: 353.9 kB / 454.2 MB, free: 3.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004079/0.3179, allocations: 234.5 kB / 454.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007382/0.3187, allocations: 0.8034 MB / 455.2 MB, free: 2.625 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.3199, allocations: 1.118 MB / 456.3 MB, free: 1.238 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.3199, allocations: 4 kB / 456.3 MB, free: 1.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001663/0.3215, allocations: 1.173 MB / 457.5 MB, free: 44 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.248e-05/0.3216, allocations: 41.78 kB / 457.5 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.3216, allocations: 20 kB / 457.5 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002182/0.3219, allocations: 77.52 kB / 457.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007086/0.3226, allocations: 255.6 kB / 457.9 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/0.3245, allocations: 2.773 MB / 460.6 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000776/0.3253, allocations: 75.97 kB / 460.7 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.325e-05/0.3253, allocations: 60 kB / 460.8 MB, free: 12.46 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.0004396/0.3258, allocations: 361.3 kB / 461.1 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.3259, allocations: 134.4 kB / 461.3 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009471/0.3269, allocations: 0.5605 MB / 461.8 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3269, allocations: 4.094 kB / 461.8 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3269, allocations: 4 kB / 461.8 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3269, allocations: 3.984 kB / 461.8 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002364/0.3293, allocations: 1.866 MB / 463.7 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3293, allocations: 4 kB / 463.7 MB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003928/0.3297, allocations: 99.89 kB / 463.8 MB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001315/0.3298, allocations: 50.16 kB / 463.9 MB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.3299, allocations: 12 kB / 463.9 MB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001669/0.3316, allocations: 2.742 MB / 466.6 MB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.3316, allocations: 11.92 kB / 466.6 MB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.3328, allocations: 0.924 MB / 467.5 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003051/0.3331, allocations: 251.5 kB / 467.8 MB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.3333, allocations: 20 kB / 467.8 MB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004842/0.3338, allocations: 35.97 kB / 467.8 MB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.701e-05/0.3339, allocations: 55.75 kB / 467.9 MB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.837e-05/0.3339, allocations: 20 kB / 467.9 MB, free: 4.793 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00103/0.3349, allocations: 0.8461 MB / 468.8 MB, free: 3.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3349, allocations: 4 kB / 468.8 MB, free: 3.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009331/0.3359, allocations: 304 kB / 469.1 MB, free: 3.645 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.0002043/0.3361, allocations: 131 kB / 469.2 MB, free: 3.508 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.3374, allocations: 0.9251 MB / 470.1 MB, free: 2.551 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3374, allocations: 8.438 kB / 470.1 MB, free: 2.543 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006026/0.338, allocations: 465.1 kB / 470.6 MB, free: 2.062 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.3393, allocations: 340.1 kB / 470.9 MB, free: 1.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003355/0.3427, allocations: 2.507 MB / 473.4 MB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006732/0.3434, allocations: 1.174 MB / 474.6 MB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004597/0.3439, allocations: 179.3 kB / 474.8 MB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.344, allocations: 87.44 kB / 474.8 MB, free: 13.68 MB / 398.1 MB Notification: Performance of SimCode: time 1.673e-06/0.344, allocations: 0 / 474.8 MB, free: 13.68 MB / 398.1 MB Notification: Performance of Templates: time 0.02585/0.3699, allocations: 15.28 MB / 490.1 MB, free: 14.56 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