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.001555/0.001555, allocations: 111 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002159/0.002159, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2092/0.2105, allocations: 50.55 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01154/0.222, allocations: 11.76 MB / 421.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004467/0.2265, allocations: 3.246 MB / 425 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005379/0.2271, allocations: 39.88 kB / 425 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.2284, allocations: 0.6493 MB / 425.6 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001136/0.2295, allocations: 0.6704 MB / 426.3 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006443/0.2302, allocations: 399.5 kB / 426.7 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001915/0.2321, allocations: 2.245 MB / 428.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001154/0.2333, allocations: 0.9966 MB / 429.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009192/0.2342, allocations: 0.86 MB / 430.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008449/0.2351, allocations: 0.9061 MB / 431.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002332/0.2353, allocations: 216 kB / 431.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004054/0.2357, allocations: 260 kB / 432.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000288/0.236, allocations: 430.4 kB / 432.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000819/0.2368, allocations: 1.015 MB / 433.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002136/0.239, allocations: 2.682 MB / 436.3 MB, free: 7.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.239, allocations: 0 / 436.3 MB, free: 7.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.239, allocations: 0 / 436.3 MB, free: 7.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.861e-05/0.239, allocations: 4 kB / 436.3 MB, free: 7.086 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.003021/0.2421, allocations: 2.06 MB / 438.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.2421, allocations: 8.031 kB / 438.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007433/0.2428, allocations: 258.5 kB / 438.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001505/0.2444, allocations: 1.044 MB / 439.7 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.326e-05/0.2445, allocations: 111.5 kB / 439.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001946/0.2447, allocations: 167.8 kB / 439.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002191/0.2469, allocations: 1.483 MB / 441.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.596e-05/0.2469, allocations: 11.89 kB / 441.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.247, allocations: 68 kB / 441.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.522e-05/0.2471, allocations: 40 kB / 441.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/0.2488, allocations: 0.9707 MB / 442.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006908/0.2557, allocations: 6.523 MB / 449 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007827/0.2565, allocations: 402.5 kB / 449.4 MB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000411/0.2569, allocations: 218.1 kB / 449.6 MB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.257, allocations: 4.438 kB / 449.6 MB, free: 9.191 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004637/0.2575, allocations: 268.8 kB / 449.9 MB, free: 8.906 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 1.964e-06/0.2575, allocations: 0 / 449.9 MB, free: 8.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.0029/0.2604, allocations: 1.762 MB / 451.7 MB, free: 7.051 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.2605, allocations: 158.8 kB / 451.8 MB, free: 6.859 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001526/0.262, allocations: 1.281 MB / 453.1 MB, free: 5.562 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.262, allocations: 37.7 kB / 453.1 MB, free: 5.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005914/0.2626, allocations: 0.8751 MB / 454 MB, free: 4.633 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.2628, allocations: 209.1 kB / 454.2 MB, free: 4.426 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002507/0.263, allocations: 222.6 kB / 454.4 MB, free: 4.203 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.2632, allocations: 349.9 kB / 454.8 MB, free: 3.855 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004416/0.2636, allocations: 230.5 kB / 455 MB, free: 3.629 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007977/0.2644, allocations: 0.7995 MB / 455.8 MB, free: 2.551 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.2657, allocations: 1.122 MB / 456.9 MB, free: 1.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.2657, allocations: 4 kB / 456.9 MB, free: 1.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001771/0.2675, allocations: 1.169 MB / 458.1 MB, free: 15.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.981e-05/0.2676, allocations: 41.7 kB / 458.1 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.2676, allocations: 16 kB / 458.1 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002054/0.2678, allocations: 78.31 kB / 458.2 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007636/0.2686, allocations: 267.5 kB / 458.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/0.2704, allocations: 2.769 MB / 461.3 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007788/0.2712, allocations: 67.91 kB / 461.3 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.358e-05/0.2713, allocations: 68 kB / 461.4 MB, free: 12.38 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.0004358/0.2717, allocations: 369.2 kB / 461.7 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.2719, allocations: 130.4 kB / 461.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009981/0.2729, allocations: 0.5566 MB / 462.4 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2729, allocations: 0 / 462.4 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2729, allocations: 0 / 462.4 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003305/0.2732, allocations: 251.4 kB / 462.7 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.2734, allocations: 12 kB / 462.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004606/0.2738, allocations: 31.97 kB / 462.7 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.026e-05/0.2739, allocations: 36.45 kB / 462.8 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001182/0.2751, allocations: 0.5745 MB / 463.3 MB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001297/0.2764, allocations: 0.866 MB / 464.2 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003044/0.2768, allocations: 176.4 kB / 464.4 MB, free: 9.316 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001068/0.2778, allocations: 0.85 MB / 465.2 MB, free: 8.465 MB / 382.1 MB Notification: Performance of Backend: time 1.9e-07/0.2778, allocations: 0 / 465.2 MB, free: 8.465 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.2795, allocations: 0.8931 MB / 466.1 MB, free: 7.531 MB / 382.1 MB Notification: Performance of SimCode: time 0.0041/0.2836, allocations: 3.127 MB / 469.2 MB, free: 4.359 MB / 382.1 MB Notification: Performance of Templates: time 0.02612/0.3098, allocations: 16.04 MB / 485.3 MB, free: 4.465 MB / 398.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