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.001801/0.001801, allocations: 110.1 kB / 17.16 MB, free: 6.082 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.002168/0.002168, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.252/2.252, allocations: 222.9 MB / 241.8 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 43.84 kB / 300.6 MB, free: 6.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.141, allocations: 49.45 MB / 350.1 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.02259/0.1637, allocations: 11.65 MB / 361.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01202/0.1758, allocations: 3.195 MB / 364.9 MB, free: 5.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003463/0.1793, allocations: 35.94 kB / 364.9 MB, free: 5.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004411/0.1839, allocations: 0.5554 MB / 365.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004928/0.1889, allocations: 0.5818 MB / 366.1 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002265/0.1912, allocations: 347.7 kB / 366.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006136/0.1974, allocations: 2.135 MB / 368.6 MB, free: 2.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002721/0.2002, allocations: 0.8502 MB / 369.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00257/0.2028, allocations: 0.7505 MB / 370.2 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2669/0.4697, allocations: 0.8639 MB / 371 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001094/0.4709, allocations: 135 kB / 371.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00132/0.4722, allocations: 172.7 kB / 371.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005319/0.4728, allocations: 348.7 kB / 371.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002614/0.4754, allocations: 0.9331 MB / 372.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009709/0.4851, allocations: 2.165 MB / 374.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.4852, allocations: 0.5938 kB / 374.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.333e-06/0.4852, allocations: 1.344 kB / 374.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001679/0.4854, allocations: 2.906 kB / 374.8 MB, free: 12.37 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.01128/0.4967, allocations: 2.072 MB / 376.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.624e-05/0.4968, allocations: 10.75 kB / 376.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002116/0.4989, allocations: 255.1 kB / 377.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004327/0.5033, allocations: 1.021 MB / 378.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002512/0.5036, allocations: 112.3 kB / 378.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000816/0.5044, allocations: 159.9 kB / 378.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007387/0.5118, allocations: 1.488 MB / 379.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001471/0.512, allocations: 14.36 kB / 379.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004182/0.5125, allocations: 69.78 kB / 380 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-05/0.5126, allocations: 38.22 kB / 380 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004275/0.5169, allocations: 0.9752 MB / 381 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01549/0.5324, allocations: 6.568 MB / 387.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.5339, allocations: 395.9 kB / 387.9 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007414/0.5347, allocations: 223.2 kB / 388.1 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.236e-05/0.5347, allocations: 5.094 kB / 388.1 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009209/0.5357, allocations: 276.6 kB / 388.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 4.519e-06/0.5357, allocations: 0 / 388.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.00656/0.5423, allocations: 1.758 MB / 390.2 MB, free: 4.418 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.389e-05/0.5424, allocations: 165.2 kB / 390.3 MB, free: 4.227 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004661/0.5471, allocations: 1.275 MB / 391.6 MB, free: 3.512 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001647/0.5473, allocations: 36.52 kB / 391.6 MB, free: 3.473 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001698/0.549, allocations: 0.8724 MB / 392.5 MB, free: 2.695 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004224/0.5494, allocations: 207.2 kB / 392.7 MB, free: 2.523 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007627/0.5502, allocations: 217.4 kB / 392.9 MB, free: 2.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.5504, allocations: 356 kB / 393.3 MB, free: 2.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.5515, allocations: 229 kB / 393.5 MB, free: 1.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/0.553, allocations: 0.7975 MB / 394.3 MB, free: 1.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002361/0.5554, allocations: 1.125 MB / 395.4 MB, free: 36 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.368e-05/0.5554, allocations: 6.406 kB / 395.4 MB, free: 36 kB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004356/0.5598, allocations: 1.17 MB / 396.6 MB, free: 15.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/0.56, allocations: 39.83 kB / 396.6 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.588e-05/0.5601, allocations: 19.31 kB / 396.7 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005406/0.5606, allocations: 69 kB / 396.7 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.5622, allocations: 263.5 kB / 397 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003373/0.5656, allocations: 2.59 MB / 399.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00246/0.5681, allocations: 73.16 kB / 399.6 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002272/0.5683, allocations: 58.88 kB / 399.7 MB, free: 12.73 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.001539/0.5699, allocations: 356.8 kB / 400 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006917/0.5706, allocations: 131 kB / 400.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002339/0.5729, allocations: 0.5508 MB / 400.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.5729, allocations: 6.156 kB / 400.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.573, allocations: 5.156 kB / 400.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.573, allocations: 3.984 kB / 400.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006621/0.5796, allocations: 1.865 MB / 402.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.798e-05/0.5797, allocations: 6.594 kB / 402.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007921/0.5805, allocations: 108.1 kB / 402.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002886/0.5808, allocations: 46.52 kB / 402.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.685e-05/0.5809, allocations: 15.44 kB / 402.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003072/0.584, allocations: 2.552 MB / 405.3 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.359e-05/0.584, allocations: 11 kB / 405.3 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003111/0.5871, allocations: 0.9175 MB / 406.3 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/0.5885, allocations: 261.7 kB / 406.5 MB, free: 7.156 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007615/0.5893, allocations: 19.45 kB / 406.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001514/0.5909, allocations: 26.7 kB / 406.6 MB, free: 7.133 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/0.5911, allocations: 57.38 kB / 406.6 MB, free: 7.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.211e-05/0.5912, allocations: 15.12 kB / 406.6 MB, free: 7.102 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002803/0.594, allocations: 0.8486 MB / 407.5 MB, free: 6.629 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.594, allocations: 0 / 407.5 MB, free: 6.629 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002988/0.597, allocations: 307.8 kB / 407.8 MB, free: 6.598 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.0004964/0.5975, allocations: 144.2 kB / 407.9 MB, free: 6.488 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00305/0.6006, allocations: 0.9219 MB / 408.8 MB, free: 5.973 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/0.6006, allocations: 2 kB / 408.8 MB, free: 5.973 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.6018, allocations: 457.7 kB / 409.3 MB, free: 5.66 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004073/0.6059, allocations: 312.8 kB / 409.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/0.6162, allocations: 3.199 MB / 412.8 MB, free: 2.199 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001987/0.6182, allocations: 1.178 MB / 414 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006178/0.6189, allocations: 94.7 kB / 414.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of SimCode: time 1.492e-06/0.6189, allocations: 4 kB / 414.1 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of Templates: time 0.07725/0.6962, allocations: 31.49 MB / 445.6 MB, free: 1.492 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