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.001301/0.0013, allocations: 110.4 kB / 17.73 MB, free: 5.363 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.001479/0.001479, allocations: 187.1 kB / 18.66 MB, free: 4.441 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.721/1.721, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001173/0.001173, allocations: 47.94 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1049, allocations: 46.61 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.328/0.433, allocations: 11.7 MB / 386.8 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01126/0.4443, allocations: 3.221 MB / 390.1 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004048/0.4485, allocations: 38.72 kB / 390.1 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003921/0.4524, allocations: 0.639 MB / 390.7 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005675/0.4582, allocations: 0.6717 MB / 391.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00261/0.4608, allocations: 396.4 kB / 391.8 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005994/0.4668, allocations: 2.255 MB / 394.1 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003059/0.4699, allocations: 0.9959 MB / 395 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003976/0.4739, allocations: 0.8461 MB / 395.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00362/0.4776, allocations: 0.9045 MB / 396.8 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001215/0.4789, allocations: 217.3 kB / 397 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002406/0.4813, allocations: 257.7 kB / 397.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001332/0.4826, allocations: 439.2 kB / 397.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004173/0.4868, allocations: 1.017 MB / 398.7 MB, free: 64 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007797/0.4947, allocations: 2.678 MB / 401.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.135e-05/0.4947, allocations: 2.969 kB / 401.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.4948, allocations: 0 / 401.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001882/0.495, allocations: 0 / 401.4 MB, free: 15.04 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.008787/0.5038, allocations: 2.057 MB / 403.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/0.5038, allocations: 8.25 kB / 403.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/0.5055, allocations: 257 kB / 403.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003914/0.5095, allocations: 1.056 MB / 404.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/0.5097, allocations: 113.6 kB / 404.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006218/0.5103, allocations: 165.2 kB / 405 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005387/0.5157, allocations: 1.483 MB / 406.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001378/0.5159, allocations: 11.39 kB / 406.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003386/0.5163, allocations: 66.52 kB / 406.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.371e-05/0.5164, allocations: 37.66 kB / 406.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003885/0.5203, allocations: 0.9807 MB / 407.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0142/0.5345, allocations: 6.5 MB / 414.1 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.5356, allocations: 415.2 kB / 414.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004919/0.5361, allocations: 221.5 kB / 414.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.174e-05/0.5362, allocations: 10.23 kB / 414.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006771/0.5369, allocations: 268.3 kB / 415 MB, free: 5.039 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.767e-06/0.5369, allocations: 0 / 415 MB, free: 5.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.005778/0.5427, allocations: 1.762 MB / 416.8 MB, free: 3.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.5428, allocations: 161.8 kB / 416.9 MB, free: 3.637 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003576/0.5464, allocations: 1.275 MB / 418.2 MB, free: 2.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.409e-05/0.5465, allocations: 38.61 kB / 418.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001222/0.5477, allocations: 0.8705 MB / 419.1 MB, free: 2.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002509/0.548, allocations: 204.6 kB / 419.3 MB, free: 1.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004976/0.5485, allocations: 226.6 kB / 419.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.5487, allocations: 351.5 kB / 419.9 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006208/0.5493, allocations: 232.8 kB / 420.1 MB, free: 1.336 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.5508, allocations: 0.8049 MB / 420.9 MB, free: 440 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002073/0.5529, allocations: 1.118 MB / 422 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.234e-05/0.553, allocations: 5.812 kB / 422 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003371/0.5563, allocations: 1.168 MB / 423.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.266e-05/0.5565, allocations: 41.7 kB / 423.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.934e-05/0.5565, allocations: 20 kB / 423.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003491/0.5569, allocations: 65.64 kB / 423.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009021/0.5578, allocations: 267.5 kB / 423.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002761/0.5606, allocations: 2.788 MB / 426.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/0.5623, allocations: 71.94 kB / 426.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.118e-05/0.5624, allocations: 60 kB / 426.5 MB, free: 10.74 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.001012/0.5634, allocations: 354.8 kB / 426.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002573/0.5637, allocations: 134.4 kB / 427 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/0.5649, allocations: 0.5489 MB / 427.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.565, allocations: 8 kB / 427.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.565, allocations: 0 / 427.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.565, allocations: 3.984 kB / 427.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003329/0.5683, allocations: 1.862 MB / 429.4 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/0.5683, allocations: 7.938 kB / 429.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004562/0.5688, allocations: 107.8 kB / 429.5 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001844/0.569, allocations: 50.17 kB / 429.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.569, allocations: 16 kB / 429.6 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002064/0.5711, allocations: 2.753 MB / 432.3 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.5711, allocations: 7.938 kB / 432.3 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.5727, allocations: 0.9122 MB / 433.2 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006934/0.5734, allocations: 259.4 kB / 433.5 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001526/0.5736, allocations: 20 kB / 433.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005493/0.5741, allocations: 27.97 kB / 433.5 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.5743, allocations: 59.59 kB / 433.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-05/0.5743, allocations: 16 kB / 433.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001433/0.5758, allocations: 0.85 MB / 434.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5758, allocations: 3.938 kB / 434.5 MB, free: 2.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001384/0.5772, allocations: 308 kB / 434.8 MB, free: 1.934 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.0002828/0.5774, allocations: 135 kB / 434.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001792/0.5793, allocations: 0.9182 MB / 435.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.5793, allocations: 448 / 435.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007771/0.5801, allocations: 477.3 kB / 436.3 MB, free: 352 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001646/0.5817, allocations: 345 kB / 436.6 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005338/0.5871, allocations: 2.503 MB / 439.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/0.5883, allocations: 1.174 MB / 440.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008413/0.5891, allocations: 171.3 kB / 440.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002471/0.5894, allocations: 87.44 kB / 440.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of SimCode: time 1.433e-06/0.5894, allocations: 0 / 440.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of Templates: time 0.03897/0.6284, allocations: 15.23 MB / 455.8 MB, free: 12.71 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