Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 109.4 kB / 17.73 MB, free: 5.328 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.001213/0.001213, allocations: 192.2 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 43.94 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1472, allocations: 46.61 MB / 375.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.3185/0.4658, allocations: 11.69 MB / 386.8 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009217/0.4751, allocations: 3.218 MB / 390.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003588/0.4789, allocations: 42.94 kB / 390.1 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003251/0.4821, allocations: 0.6645 MB / 390.8 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004441/0.4866, allocations: 0.7281 MB / 391.5 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001743/0.4884, allocations: 393.2 kB / 391.9 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004682/0.4931, allocations: 2.254 MB / 394.1 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002242/0.4953, allocations: 0.9977 MB / 395.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001914/0.4973, allocations: 0.8406 MB / 396 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002028/0.4993, allocations: 0.9158 MB / 396.9 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008496/0.5002, allocations: 216.4 kB / 397.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.5017, allocations: 252.9 kB / 397.3 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000744/0.5024, allocations: 433.1 kB / 397.8 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002084/0.5045, allocations: 1.019 MB / 398.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004167/0.5087, allocations: 2.676 MB / 401.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.809e-06/0.5087, allocations: 4 kB / 401.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.5087, allocations: 4 kB / 401.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.388e-05/0.5088, allocations: 1.5 kB / 401.5 MB, free: 14.97 MB / 334.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.004503/0.5133, allocations: 2.061 MB / 403.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.5134, allocations: 12.34 kB / 403.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009024/0.5143, allocations: 253.4 kB / 403.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00184/0.5161, allocations: 1.052 MB / 404.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.5163, allocations: 113.3 kB / 405 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002522/0.5165, allocations: 161.6 kB / 405.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002887/0.5194, allocations: 1.489 MB / 406.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.967e-05/0.5195, allocations: 7.609 kB / 406.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001374/0.5196, allocations: 63.12 kB / 406.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.668e-05/0.5197, allocations: 38.41 kB / 406.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002096/0.5218, allocations: 0.976 MB / 407.7 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008608/0.5304, allocations: 6.512 MB / 414.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.5314, allocations: 403 kB / 414.6 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005039/0.532, allocations: 225.3 kB / 414.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.272e-05/0.532, allocations: 9.906 kB / 414.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000631/0.5327, allocations: 265.3 kB / 415.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.246e-06/0.5327, allocations: 1.25 kB / 415.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.00375/0.5364, allocations: 1.76 MB / 416.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.5365, allocations: 162.2 kB / 417 MB, free: 3.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001771/0.5383, allocations: 1.274 MB / 418.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.5384, allocations: 40.3 kB / 418.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007587/0.5391, allocations: 0.8724 MB / 419.2 MB, free: 2.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/0.5393, allocations: 208.9 kB / 419.4 MB, free: 1.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003432/0.5397, allocations: 223.1 kB / 419.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.5398, allocations: 351.5 kB / 419.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004805/0.5403, allocations: 232.8 kB / 420.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.5414, allocations: 0.8087 MB / 421 MB, free: 364 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.543, allocations: 1.109 MB / 422.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/0.543, allocations: 9.188 kB / 422.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001972/0.545, allocations: 1.171 MB / 423.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.044e-05/0.545, allocations: 37.7 kB / 423.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.524e-05/0.5451, allocations: 20.69 kB / 423.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002553/0.5453, allocations: 73.64 kB / 423.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007797/0.5461, allocations: 263.5 kB / 423.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/0.5483, allocations: 2.784 MB / 426.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009823/0.5493, allocations: 75.88 kB / 426.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.415e-05/0.5494, allocations: 60 kB / 426.6 MB, free: 10.65 MB / 350.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.0006294/0.5501, allocations: 353.3 kB / 426.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.5502, allocations: 130.4 kB / 427.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.5513, allocations: 0.5567 MB / 427.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.387e-06/0.5514, allocations: 4 kB / 427.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.5514, allocations: 0 / 427.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.5514, allocations: 3.984 kB / 427.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003074/0.5545, allocations: 1.87 MB / 429.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.888e-06/0.5545, allocations: 7.938 kB / 429.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004301/0.5549, allocations: 99.88 kB / 429.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001263/0.5551, allocations: 45.7 kB / 429.6 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.5551, allocations: 12.34 kB / 429.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002066/0.5572, allocations: 2.753 MB / 432.4 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.328e-06/0.5572, allocations: 11.92 kB / 432.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.5586, allocations: 0.9122 MB / 433.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003491/0.5589, allocations: 255.4 kB / 433.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.5591, allocations: 16 kB / 433.6 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005669/0.5596, allocations: 35.97 kB / 433.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.5598, allocations: 59.59 kB / 433.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.5598, allocations: 20 kB / 433.7 MB, free: 3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001188/0.561, allocations: 0.8422 MB / 434.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.561, allocations: 3.938 kB / 434.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00112/0.5621, allocations: 312 kB / 434.9 MB, free: 1.848 MB / 350.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.0002529/0.5624, allocations: 132.1 kB / 435 MB, free: 1.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001446/0.5638, allocations: 0.9262 MB / 435.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5639, allocations: 0 / 435.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006692/0.5645, allocations: 478.4 kB / 436.4 MB, free: 256 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/0.566, allocations: 333 kB / 436.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003949/0.57, allocations: 2.507 MB / 439.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008462/0.5708, allocations: 1.178 MB / 440.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005229/0.5713, allocations: 175.3 kB / 440.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.5715, allocations: 83.44 kB / 440.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.5715, allocations: 0 / 440.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of Templates: time 0.0265/0.5981, allocations: 15.22 MB / 455.9 MB, free: 12.62 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches