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.001122/0.001122, allocations: 113.1 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001236/0.001236, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2301, allocations: 50.54 MB / 409.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01166/0.2418, allocations: 11.77 MB / 421.7 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005795/0.2476, allocations: 3.234 MB / 424.9 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00129/0.249, allocations: 35.94 kB / 425 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001738/0.2507, allocations: 0.6531 MB / 425.6 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001894/0.2526, allocations: 0.686 MB / 426.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007975/0.2535, allocations: 391.5 kB / 426.7 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0025/0.256, allocations: 2.246 MB / 428.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001197/0.2572, allocations: 0.9927 MB / 429.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.2583, allocations: 0.8599 MB / 430.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009506/0.2593, allocations: 0.9022 MB / 431.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002382/0.2595, allocations: 216 kB / 431.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004207/0.26, allocations: 256 kB / 432.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002788/0.2603, allocations: 434.4 kB / 432.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008483/0.2611, allocations: 1.011 MB / 433.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002349/0.2635, allocations: 2.678 MB / 436.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.2635, allocations: 4 kB / 436.3 MB, free: 7.078 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2635, allocations: 0 / 436.3 MB, free: 7.078 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.502e-05/0.2635, allocations: 4 kB / 436.3 MB, free: 7.074 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.003293/0.2668, allocations: 2.064 MB / 438.3 MB, free: 4.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.2669, allocations: 12.03 kB / 438.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007397/0.2676, allocations: 254.5 kB / 438.6 MB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00154/0.2692, allocations: 1.04 MB / 439.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.401e-05/0.2693, allocations: 115.4 kB / 439.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002021/0.2695, allocations: 167.8 kB / 439.9 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002346/0.2718, allocations: 1.48 MB / 441.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.366e-05/0.2719, allocations: 11.84 kB / 441.4 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/0.272, allocations: 71.98 kB / 441.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.918e-05/0.272, allocations: 40 kB / 441.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.2738, allocations: 0.9668 MB / 442.5 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007477/0.2813, allocations: 6.527 MB / 449 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000786/0.2821, allocations: 396.2 kB / 449.4 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004153/0.2825, allocations: 221.5 kB / 449.6 MB, free: 9.184 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.434e-05/0.2826, allocations: 4.438 kB / 449.6 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004908/0.2831, allocations: 272.8 kB / 449.9 MB, free: 8.891 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.625e-06/0.2831, allocations: 0 / 449.9 MB, free: 8.891 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.00315/0.2862, allocations: 1.766 MB / 451.7 MB, free: 7.031 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.702e-05/0.2863, allocations: 162.7 kB / 451.8 MB, free: 6.836 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001563/0.2879, allocations: 1.281 MB / 453.1 MB, free: 5.539 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.06e-05/0.288, allocations: 41.7 kB / 453.1 MB, free: 5.492 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006284/0.2886, allocations: 0.8712 MB / 454 MB, free: 4.609 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.2888, allocations: 209.2 kB / 454.2 MB, free: 4.402 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/0.289, allocations: 222.6 kB / 454.4 MB, free: 4.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.2892, allocations: 349.9 kB / 454.8 MB, free: 3.832 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004526/0.2896, allocations: 230.5 kB / 455 MB, free: 3.605 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007985/0.2904, allocations: 0.7995 MB / 455.8 MB, free: 2.527 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.2918, allocations: 1.114 MB / 456.9 MB, free: 1.145 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.225e-05/0.2918, allocations: 4 kB / 456.9 MB, free: 1.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001962/0.2938, allocations: 1.176 MB / 458.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.996e-05/0.2938, allocations: 41.7 kB / 458.1 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/0.2939, allocations: 16.69 kB / 458.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/0.2941, allocations: 77.62 kB / 458.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008199/0.295, allocations: 263.5 kB / 458.5 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.2969, allocations: 2.773 MB / 461.3 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009399/0.2979, allocations: 67.97 kB / 461.3 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.698e-05/0.298, allocations: 64 kB / 461.4 MB, free: 12.36 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.0005813/0.2985, allocations: 365.2 kB / 461.7 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002116/0.2988, allocations: 134.4 kB / 461.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.2999, allocations: 0.5605 MB / 462.4 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.2999, allocations: 8 kB / 462.4 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2999, allocations: 0 / 462.4 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.2999, allocations: 0 / 462.4 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002805/0.3027, allocations: 1.866 MB / 464.3 MB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.3027, allocations: 4 kB / 464.3 MB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004284/0.3032, allocations: 103.8 kB / 464.4 MB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001659/0.3034, allocations: 45.69 kB / 464.5 MB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/0.3034, allocations: 16 kB / 464.5 MB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001761/0.3052, allocations: 2.747 MB / 467.2 MB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.3052, allocations: 4 kB / 467.2 MB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.3066, allocations: 0.9239 MB / 468.1 MB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004303/0.307, allocations: 259.5 kB / 468.4 MB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002104/0.3072, allocations: 12 kB / 468.4 MB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006014/0.3079, allocations: 31.97 kB / 468.4 MB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.308, allocations: 55.81 kB / 468.5 MB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.971e-05/0.308, allocations: 20 kB / 468.5 MB, free: 4.699 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00128/0.3093, allocations: 0.8461 MB / 469.4 MB, free: 3.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3093, allocations: 0 / 469.4 MB, free: 3.852 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001167/0.3105, allocations: 304 kB / 469.7 MB, free: 3.555 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.0002552/0.3107, allocations: 146.5 kB / 469.8 MB, free: 3.406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.3123, allocations: 0.9255 MB / 470.7 MB, free: 2.449 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3124, allocations: 3.938 kB / 470.7 MB, free: 2.445 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006485/0.313, allocations: 458.1 kB / 471.2 MB, free: 1.973 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001581/0.3146, allocations: 343 kB / 471.5 MB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00432/0.3189, allocations: 2.559 MB / 474.1 MB, free: 15 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008227/0.3198, allocations: 1.174 MB / 475.2 MB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/0.32, allocations: 91.44 kB / 475.3 MB, free: 13.71 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3201, allocations: 3.938 kB / 475.3 MB, free: 13.7 MB / 398.1 MB Notification: Performance of Templates: time 0.03711/0.3572, allocations: 31.7 MB / 0.4952 GB, free: 14.04 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