Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|dcpm.ia|dcpm.tauElectrical|dcee.ia|dcee.tauElectrical|dcse.ia|dcse.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w|loadInertia3.phi|loadInertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001796/0.001796, allocations: 116.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002105/0.002106, allocations: 210 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.803/1.803, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2636, allocations: 50.55 MB / 409.9 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01971/0.2834, allocations: 18.85 MB / 428.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.2944, allocations: 5.726 MB / 434.5 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003617/0.2981, allocations: 71.81 kB / 434.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005015/0.3032, allocations: 1.297 MB / 435.9 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005819/0.309, allocations: 1.205 MB / 437.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002645/0.3117, allocations: 0.6745 MB / 437.8 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007211/0.3189, allocations: 3.919 MB / 441.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003777/0.3227, allocations: 1.596 MB / 443.3 MB, free: 32 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003264/0.326, allocations: 1.475 MB / 444.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003069/0.3292, allocations: 1.59 MB / 446.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001379/0.3306, allocations: 372 kB / 446.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001848/0.3324, allocations: 408 kB / 447.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001188/0.3336, allocations: 0.7278 MB / 447.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003856/0.3375, allocations: 1.765 MB / 449.6 MB, free: 9.688 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007726/0.3453, allocations: 4.605 MB / 454.2 MB, free: 5.066 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.347e-06/0.3454, allocations: 0 / 454.2 MB, free: 5.066 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3454, allocations: 3.938 kB / 454.2 MB, free: 5.062 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001957/0.3456, allocations: 0 / 454.2 MB, free: 5.062 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.00815/0.3537, allocations: 3.332 MB / 457.5 MB, free: 1.664 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.3538, allocations: 19.97 kB / 457.6 MB, free: 1.645 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00192/0.3557, allocations: 471.7 kB / 458 MB, free: 1.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004026/0.3598, allocations: 1.742 MB / 459.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.36, allocations: 197.2 kB / 460 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006325/0.3606, allocations: 263.7 kB / 460.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005739/0.3664, allocations: 2.466 MB / 462.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/0.3665, allocations: 15.83 kB / 462.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003248/0.3669, allocations: 108 kB / 462.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.994e-05/0.3669, allocations: 64 kB / 462.9 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003952/0.3709, allocations: 1.635 MB / 464.5 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01697/0.3879, allocations: 10.57 MB / 475.1 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.3895, allocations: 1.046 MB / 476.1 MB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006474/0.3901, allocations: 367.4 kB / 476.5 MB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.62e-05/0.3902, allocations: 16.59 kB / 476.5 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.511e-05/0.3903, allocations: 43.22 kB / 476.5 MB, free: 13.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 2.545e-06/0.3903, allocations: 0 / 476.5 MB, free: 13.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=90): time 0.00651/0.3968, allocations: 2.914 MB / 479.4 MB, free: 10.76 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001573/0.397, allocations: 167.2 kB / 479.6 MB, free: 10.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004106/0.4011, allocations: 2.202 MB / 481.8 MB, free: 8.336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001151/0.4012, allocations: 41.7 kB / 481.8 MB, free: 8.289 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.4024, allocations: 1.474 MB / 483.3 MB, free: 6.793 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003084/0.4027, allocations: 335.3 kB / 483.6 MB, free: 6.461 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00043/0.4031, allocations: 331.1 kB / 484 MB, free: 6.133 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.667e-05/0.4032, allocations: 301.1 kB / 484.3 MB, free: 5.836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007264/0.404, allocations: 372.7 kB / 484.6 MB, free: 5.469 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001247/0.4052, allocations: 1.235 MB / 485.9 MB, free: 3.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002086/0.4073, allocations: 1.726 MB / 487.6 MB, free: 1.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.695e-05/0.4073, allocations: 8 kB / 487.6 MB, free: 1.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.003248/0.4106, allocations: 1.842 MB / 489.4 MB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.4106, allocations: 16 kB / 489.5 MB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.513e-05/0.4107, allocations: 32 kB / 489.5 MB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005258/0.4112, allocations: 160 kB / 489.6 MB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.4123, allocations: 407.3 kB / 490 MB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004274/0.4166, allocations: 5.754 MB / 495.8 MB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.4183, allocations: 95.94 kB / 495.9 MB, free: 8.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.4185, allocations: 92 kB / 496 MB, free: 8.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001295/0.4198, allocations: 0.7265 MB / 496.7 MB, free: 7.949 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001121/0.4209, allocations: 1.223 MB / 497.9 MB, free: 6.309 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001882/0.4228, allocations: 1.715 MB / 499.6 MB, free: 4.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.202e-05/0.4228, allocations: 8 kB / 499.6 MB, free: 4.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.002866/0.4257, allocations: 1.815 MB / 0.4897 GB, free: 2.336 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.4257, allocations: 24.12 kB / 0.4897 GB, free: 2.312 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/0.4258, allocations: 28 kB / 0.4898 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004387/0.4262, allocations: 151.4 kB / 0.4899 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.4273, allocations: 407.3 kB / 0.4903 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004109/0.4314, allocations: 5.761 MB / 0.4959 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/0.4331, allocations: 87.88 kB / 0.496 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.4333, allocations: 92 kB / 0.4961 GB, free: 11.23 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (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.0004005/0.4337, allocations: 331.6 kB / 0.4964 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003449/0.434, allocations: 229.2 kB / 0.4966 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/0.4357, allocations: 0.9106 MB / 0.4975 GB, free: 9.738 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.4358, allocations: 8 kB / 0.4975 GB, free: 9.73 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.4358, allocations: 4 kB / 0.4975 GB, free: 9.727 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.4358, allocations: 7.922 kB / 0.4975 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004699/0.4405, allocations: 3.117 MB / 0.5006 GB, free: 6.453 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.4405, allocations: 7.938 kB / 0.5006 GB, free: 6.445 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005844/0.4411, allocations: 159.7 kB / 0.5007 GB, free: 6.289 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004245/0.4415, allocations: 124 kB / 0.5009 GB, free: 6.156 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.676e-05/0.4416, allocations: 24 kB / 0.5009 GB, free: 6.133 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004015/0.4456, allocations: 5.714 MB / 0.5065 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.4457, allocations: 7.938 kB / 0.5065 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002412/0.4481, allocations: 1.492 MB / 0.5079 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008484/0.4489, allocations: 390.1 kB / 0.5083 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002321/0.4492, allocations: 20 kB / 0.5083 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008905/0.4501, allocations: 63.89 kB / 0.5084 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.4502, allocations: 76.36 kB / 0.5084 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.532e-05/0.4503, allocations: 28 kB / 0.5085 GB, free: 13.67 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002578/0.4529, allocations: 1.458 MB / 0.5099 GB, free: 12.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4529, allocations: 0 / 0.5099 GB, free: 12.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003644/0.4565, allocations: 0.9414 MB / 0.5108 GB, free: 11.26 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.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 (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003115/0.4569, allocations: 155 kB / 0.511 GB, free: 11.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004247/0.4611, allocations: 2.698 MB / 0.5136 GB, free: 8.312 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.4612, allocations: 4 kB / 0.5136 GB, free: 8.309 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.4623, allocations: 0.8154 MB / 0.5144 GB, free: 7.441 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003007/0.4654, allocations: 0.6084 MB / 0.515 GB, free: 6.852 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00727/0.4727, allocations: 4.198 MB / 0.5191 GB, free: 2.543 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00125/0.474, allocations: 1.567 MB / 0.5206 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005103/0.4745, allocations: 151.4 kB / 0.5208 GB, free: 0.793 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4745, allocations: 0 / 0.5208 GB, free: 0.793 MB / 446.1 MB Notification: Performance of Templates: time 0.3534/0.8279, allocations: 79.3 MB / 0.5982 GB, free: 68.66 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches