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.001718/0.001718, allocations: 112.4 kB / 18.45 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002326/0.002326, allocations: 213.9 kB / 19.4 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.074/2.074, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00225/0.00225, allocations: 55.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3722, allocations: 50.56 MB / 409.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0225/0.3947, allocations: 11.76 MB / 421.7 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009511/0.4043, allocations: 3.258 MB / 424.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002207/0.4065, allocations: 35.94 kB / 425 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003201/0.4098, allocations: 0.6454 MB / 425.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004254/0.4141, allocations: 0.6742 MB / 426.3 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001991/0.4161, allocations: 403.5 kB / 426.7 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004916/0.4211, allocations: 2.241 MB / 428.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002245/0.4234, allocations: 0.9811 MB / 429.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002223/0.4256, allocations: 0.856 MB / 430.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002/0.4276, allocations: 0.9139 MB / 431.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005202/0.4282, allocations: 216 kB / 431.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007951/0.429, allocations: 260 kB / 432.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004543/0.4295, allocations: 430.4 kB / 432.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001645/0.4312, allocations: 1.015 MB / 433.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004226/0.4354, allocations: 2.675 MB / 436.3 MB, free: 7.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.4355, allocations: 3.938 kB / 436.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4355, allocations: 0 / 436.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.227e-05/0.4355, allocations: 3.938 kB / 436.3 MB, free: 7.062 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.005556/0.4411, allocations: 2.064 MB / 438.3 MB, free: 4.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.4412, allocations: 8.031 kB / 438.3 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001272/0.4425, allocations: 262.5 kB / 438.6 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002741/0.4452, allocations: 1.048 MB / 439.6 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.4454, allocations: 115.5 kB / 439.8 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003243/0.4457, allocations: 159.8 kB / 439.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004012/0.4497, allocations: 1.487 MB / 441.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.849e-05/0.4499, allocations: 15.91 kB / 441.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001819/0.4501, allocations: 64 kB / 441.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.649e-05/0.4501, allocations: 36 kB / 441.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003049/0.4532, allocations: 0.9785 MB / 442.5 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01263/0.4659, allocations: 6.519 MB / 449 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.4672, allocations: 403.2 kB / 449.4 MB, free: 9.375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006379/0.4678, allocations: 218 kB / 449.6 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.738e-05/0.4679, allocations: 8.438 kB / 449.6 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007433/0.4687, allocations: 272.8 kB / 449.9 MB, free: 8.863 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 3.777e-06/0.4687, allocations: 0 / 449.9 MB, free: 8.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.005172/0.4739, allocations: 1.762 MB / 451.7 MB, free: 7.008 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.474, allocations: 158.8 kB / 451.8 MB, free: 6.816 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002799/0.4768, allocations: 1.281 MB / 453.1 MB, free: 5.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.867e-05/0.4769, allocations: 33.7 kB / 453.1 MB, free: 5.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009994/0.4779, allocations: 0.8751 MB / 454 MB, free: 4.594 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002585/0.4782, allocations: 205.2 kB / 454.2 MB, free: 4.391 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004257/0.4787, allocations: 218.6 kB / 454.4 MB, free: 4.172 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.4789, allocations: 357.9 kB / 454.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007404/0.4796, allocations: 222.5 kB / 455 MB, free: 3.598 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/0.4809, allocations: 0.8034 MB / 455.8 MB, free: 2.516 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/0.483, allocations: 1.122 MB / 456.9 MB, free: 1.125 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.607e-05/0.4831, allocations: 4 kB / 456.9 MB, free: 1.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003175/0.4862, allocations: 1.169 MB / 458.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.893e-05/0.4864, allocations: 48.5 kB / 458.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.373e-05/0.4864, allocations: 20 kB / 458.1 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003439/0.4868, allocations: 66.3 kB / 458.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.4881, allocations: 275.4 kB / 458.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002804/0.4909, allocations: 2.773 MB / 461.3 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/0.4926, allocations: 67.83 kB / 461.3 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.4927, allocations: 64.08 kB / 461.4 MB, free: 12.34 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.0008295/0.4936, allocations: 369.2 kB / 461.7 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002809/0.4939, allocations: 126.4 kB / 461.9 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001601/0.4955, allocations: 0.5566 MB / 462.4 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.597e-06/0.4955, allocations: 8 kB / 462.4 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4955, allocations: 4 kB / 462.4 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.4955, allocations: 3.984 kB / 462.4 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004231/0.4998, allocations: 1.863 MB / 464.3 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/0.4998, allocations: 4 kB / 464.3 MB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006974/0.5005, allocations: 107.8 kB / 464.4 MB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000223/0.5008, allocations: 37.7 kB / 464.4 MB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.93e-05/0.5009, allocations: 16 kB / 464.5 MB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002634/0.5035, allocations: 2.758 MB / 467.2 MB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.5035, allocations: 4.156 kB / 467.2 MB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002277/0.5058, allocations: 0.9277 MB / 468.2 MB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007065/0.5065, allocations: 251.5 kB / 468.4 MB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002157/0.5068, allocations: 16 kB / 468.4 MB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008816/0.5077, allocations: 31.97 kB / 468.4 MB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.5078, allocations: 55.81 kB / 468.5 MB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.931e-05/0.5079, allocations: 16 kB / 468.5 MB, free: 4.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00185/0.5098, allocations: 0.85 MB / 469.4 MB, free: 3.828 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5098, allocations: 0 / 469.4 MB, free: 3.828 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001905/0.5117, allocations: 300 kB / 469.7 MB, free: 3.535 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.0003159/0.512, allocations: 142.4 kB / 469.8 MB, free: 3.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002285/0.5143, allocations: 0.928 MB / 470.7 MB, free: 2.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.5144, allocations: 0 / 470.7 MB, free: 2.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000982/0.5154, allocations: 463.4 kB / 471.2 MB, free: 1.953 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002398/0.5178, allocations: 336 kB / 471.5 MB, free: 1.633 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006037/0.5238, allocations: 2.558 MB / 474.1 MB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.5249, allocations: 1.182 MB / 475.2 MB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003851/0.5254, allocations: 91.38 kB / 475.3 MB, free: 13.69 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.5254, allocations: 0 / 475.3 MB, free: 13.69 MB / 398.1 MB Notification: Performance of Templates: time 0.2561/0.7815, allocations: 31.91 MB / 0.4954 GB, free: 13.8 MB / 430.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/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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches