Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 226.5 MB / 245.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00097/0.0009701, allocations: 95.64 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003294/0.0003295, allocations: 8 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2455, allocations: 51.29 MB / 409.4 MB, free: 27.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1064/0.352, allocations: 96.79 MB / 0.4943 GB, free: 10.65 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.3522, allocations: 87.95 kB / 0.4944 GB, free: 10.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2693/0.6215, allocations: 44.56 MB / 0.5379 GB, free: 74.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.6216, allocations: 0 / 0.5379 GB, free: 74.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001376/0.6218, allocations: 32 kB / 0.5379 GB, free: 74.47 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.0042/0.626, allocations: 1.807 MB / 0.5397 GB, free: 72.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.626, allocations: 8.031 kB / 0.5397 GB, free: 72.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001082/0.6271, allocations: 286.3 kB / 0.54 GB, free: 72.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00284/0.63, allocations: 1.255 MB / 0.5412 GB, free: 71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.286e-05/0.6301, allocations: 116.2 kB / 0.5413 GB, free: 70.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003616/0.6305, allocations: 159.9 kB / 0.5415 GB, free: 70.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002941/0.6334, allocations: 1.504 MB / 0.5429 GB, free: 69.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.11e-05/0.6335, allocations: 15.84 kB / 0.5429 GB, free: 69.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001644/0.6337, allocations: 67.94 kB / 0.543 GB, free: 69.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.6337, allocations: 36 kB / 0.543 GB, free: 69.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002038/0.6357, allocations: 1.065 MB / 0.5441 GB, free: 67.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007641/0.6434, allocations: 6.411 MB / 0.5503 GB, free: 61.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.6448, allocations: 0.6507 MB / 0.551 GB, free: 60.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007259/0.6455, allocations: 450.9 kB / 0.5514 GB, free: 60.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.99e-05/0.6456, allocations: 16.7 kB / 0.5514 GB, free: 60.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.6456, allocations: 43.11 kB / 0.5515 GB, free: 60.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.795e-06/0.6457, allocations: 3.938 kB / 0.5515 GB, free: 60.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.004608/0.6503, allocations: 2.501 MB / 0.5539 GB, free: 57.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.6503, allocations: 111.5 kB / 0.554 GB, free: 57.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001596/0.6519, allocations: 1.251 MB / 0.5552 GB, free: 56.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.652, allocations: 37.7 kB / 0.5553 GB, free: 56.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004384/0.6524, allocations: 0.857 MB / 0.5561 GB, free: 55.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.6526, allocations: 268.2 kB / 0.5564 GB, free: 54.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.963e-05/0.6526, allocations: 28 kB / 0.5564 GB, free: 54.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.422e-05/0.6527, allocations: 349.9 kB / 0.5567 GB, free: 54.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005241/0.6532, allocations: 290.5 kB / 0.557 GB, free: 54.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007072/0.654, allocations: 0.746 MB / 0.5577 GB, free: 53.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.6553, allocations: 1.119 MB / 0.5588 GB, free: 51.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/0.6553, allocations: 4 kB / 0.5588 GB, free: 51.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002139/0.6574, allocations: 1.303 MB / 0.5601 GB, free: 50.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.6575, allocations: 14.81 kB / 0.5601 GB, free: 50.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.832e-05/0.6575, allocations: 16 kB / 0.5601 GB, free: 50.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004967/0.658, allocations: 146.7 kB / 0.5603 GB, free: 50.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007702/0.6588, allocations: 267.5 kB / 0.5605 GB, free: 50.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003058/0.6619, allocations: 4.328 MB / 0.5648 GB, free: 45.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.6631, allocations: 63.95 kB / 0.5648 GB, free: 45.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/0.6632, allocations: 55.98 kB / 0.5649 GB, free: 45.35 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0008169/0.664, allocations: 357.3 kB / 0.5652 GB, free: 44.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003256/0.6644, allocations: 138.3 kB / 0.5653 GB, free: 44.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.6661, allocations: 0.8725 MB / 0.5662 GB, free: 43.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.6662, allocations: 8 kB / 0.5662 GB, free: 43.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.6662, allocations: 3.938 kB / 0.5662 GB, free: 43.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.6662, allocations: 3.984 kB / 0.5662 GB, free: 43.94 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004175/0.6704, allocations: 2.353 MB / 0.5685 GB, free: 41.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.6704, allocations: 8.125 kB / 0.5685 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005389/0.6709, allocations: 128.3 kB / 0.5686 GB, free: 41.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004325/0.6714, allocations: 154.4 kB / 0.5688 GB, free: 41.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.243e-05/0.6715, allocations: 19.94 kB / 0.5688 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003072/0.6745, allocations: 4.45 MB / 0.5732 GB, free: 36.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.6746, allocations: 8.062 kB / 0.5732 GB, free: 36.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.6766, allocations: 1.361 MB / 0.5745 GB, free: 34.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000525/0.6771, allocations: 279.4 kB / 0.5748 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.6774, allocations: 19.98 kB / 0.5748 GB, free: 34.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007099/0.6781, allocations: 47.97 kB / 0.5748 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.6782, allocations: 60.38 kB / 0.5749 GB, free: 34.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.933e-05/0.6783, allocations: 23.98 kB / 0.5749 GB, free: 34.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001168/0.6795, allocations: 0.8312 MB / 0.5757 GB, free: 33.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6795, allocations: 4 kB / 0.5757 GB, free: 33.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001365/0.6808, allocations: 376 kB / 0.5761 GB, free: 33.22 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000491/0.6813, allocations: 378.8 kB / 0.5764 GB, free: 32.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001881/0.6832, allocations: 1.132 MB / 0.5775 GB, free: 31.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.6833, allocations: 7.938 kB / 0.5776 GB, free: 31.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009016/0.6842, allocations: 0.7193 MB / 0.5783 GB, free: 30.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.6866, allocations: 346.7 kB / 0.5786 GB, free: 30.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006743/0.6934, allocations: 3.591 MB / 0.5821 GB, free: 26.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/0.6945, allocations: 1.221 MB / 0.5833 GB, free: 25.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001263/0.6958, allocations: 175.8 kB / 0.5835 GB, free: 25.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003205/0.6961, allocations: 95.42 kB / 0.5835 GB, free: 25.39 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.6961, allocations: 0 / 0.5835 GB, free: 25.39 MB / 378.7 MB Notification: Performance of Templates: time 0.04657/0.7427, allocations: 19.37 MB / 0.6025 GB, free: 6.152 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches