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/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.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/Complex trunk/package.mo): time 0.001285/0.001285, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001003/0.001003, allocations: 103 kB / 296.7 MB, free: 6.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009597/0.0009597, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.2026, allocations: 50.45 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.01266/0.2153, allocations: 18.64 MB / 425.7 MB, free: 9.113 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007519/0.2229, allocations: 5.665 MB / 431.4 MB, free: 3.438 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002413/0.2253, allocations: 67.81 kB / 431.4 MB, free: 3.371 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003043/0.2284, allocations: 1.146 MB / 432.6 MB, free: 2.219 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002875/0.2313, allocations: 1.047 MB / 433.6 MB, free: 1.164 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.2324, allocations: 0.5855 MB / 434.2 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003966/0.2364, allocations: 3.765 MB / 438 MB, free: 12.8 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001735/0.2382, allocations: 1.373 MB / 439.4 MB, free: 11.37 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001693/0.2399, allocations: 1.31 MB / 440.7 MB, free: 10.05 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001706/0.2416, allocations: 1.493 MB / 442.2 MB, free: 8.555 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004629/0.2421, allocations: 232 kB / 442.4 MB, free: 8.328 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000652/0.2427, allocations: 275.9 kB / 442.7 MB, free: 8.059 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004124/0.2431, allocations: 0.591 MB / 443.2 MB, free: 7.465 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00146/0.2446, allocations: 1.628 MB / 444.9 MB, free: 5.828 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00344/0.2481, allocations: 4.438 MB / 449.3 MB, free: 1.375 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2481, allocations: 0 / 449.3 MB, free: 1.375 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2481, allocations: 8 kB / 449.3 MB, free: 1.367 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.166e-05/0.2481, allocations: 0 / 449.3 MB, free: 1.367 MB / 314.7 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.005172/0.2533, allocations: 3.328 MB / 452.6 MB, free: 13.97 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.2534, allocations: 8.031 kB / 452.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001402/0.2548, allocations: 475.7 kB / 453.1 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002484/0.2573, allocations: 1.707 MB / 454.8 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.2574, allocations: 193.2 kB / 455 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002851/0.2577, allocations: 267.7 kB / 455.3 MB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003585/0.2613, allocations: 2.471 MB / 457.7 MB, free: 8.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.998e-05/0.2614, allocations: 11.91 kB / 457.8 MB, free: 8.668 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001749/0.2615, allocations: 108 kB / 457.9 MB, free: 8.562 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.237e-05/0.2616, allocations: 64 kB / 457.9 MB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002755/0.2644, allocations: 1.642 MB / 459.6 MB, free: 6.844 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01224/0.2766, allocations: 10.65 MB / 470.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.2779, allocations: 1.053 MB / 471.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005797/0.2785, allocations: 359.4 kB / 471.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.845e-05/0.2786, allocations: 8.656 kB / 471.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/0.2786, allocations: 47.2 kB / 471.7 MB, free: 10.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 2.825e-06/0.2786, allocations: 0 / 471.7 MB, free: 10.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=90): time 0.004868/0.2835, allocations: 2.925 MB / 474.6 MB, free: 7.008 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/0.2836, allocations: 163.2 kB / 474.8 MB, free: 6.812 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002708/0.2863, allocations: 2.202 MB / 477 MB, free: 4.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.448e-05/0.2864, allocations: 41.7 kB / 477 MB, free: 4.543 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009326/0.2873, allocations: 1.474 MB / 478.5 MB, free: 3.047 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.2875, allocations: 323.5 kB / 478.8 MB, free: 2.727 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003658/0.2879, allocations: 335.1 kB / 479.1 MB, free: 2.391 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.634e-05/0.288, allocations: 301.1 kB / 479.4 MB, free: 2.094 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006273/0.2886, allocations: 372.7 kB / 479.8 MB, free: 1.727 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.2898, allocations: 1.235 MB / 481 MB, free: 72 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001841/0.2916, allocations: 1.726 MB / 482.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/0.2917, allocations: 12 kB / 482.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002752/0.2944, allocations: 1.835 MB / 484.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.095e-05/0.2945, allocations: 18.81 kB / 484.6 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.783e-05/0.2945, allocations: 35.94 kB / 484.6 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004964/0.295, allocations: 155.5 kB / 484.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.2962, allocations: 415.2 kB / 485.2 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003565/0.2997, allocations: 5.363 MB / 490.6 MB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/0.3012, allocations: 91.95 kB / 490.6 MB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.597e-05/0.3013, allocations: 95.98 kB / 490.7 MB, free: 5.355 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001245/0.3025, allocations: 0.7187 MB / 491.5 MB, free: 4.633 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001112/0.3037, allocations: 1.235 MB / 492.7 MB, free: 2.977 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001776/0.3054, allocations: 1.695 MB / 494.4 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.083e-05/0.3055, allocations: 8 kB / 494.4 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.002654/0.3081, allocations: 1.814 MB / 496.2 MB, free: 15.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.3082, allocations: 20 kB / 496.2 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.3082, allocations: 28.88 kB / 496.3 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004177/0.3086, allocations: 159.3 kB / 496.4 MB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.3098, allocations: 407.3 kB / 496.8 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003557/0.3133, allocations: 5.359 MB / 0.4904 GB, free: 8.527 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.3148, allocations: 83.88 kB / 0.4905 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.376e-05/0.3149, allocations: 99.94 kB / 0.4906 GB, free: 8.348 MB / 378.7 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.0003238/0.3152, allocations: 320 kB / 0.4909 GB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002489/0.3155, allocations: 233.2 kB / 0.4911 GB, free: 7.797 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001655/0.3171, allocations: 0.9146 MB / 0.492 GB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.3172, allocations: 8 kB / 0.492 GB, free: 6.848 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3172, allocations: 7.938 kB / 0.492 GB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3172, allocations: 3.984 kB / 0.492 GB, free: 6.836 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004428/0.3216, allocations: 3.124 MB / 0.4951 GB, free: 3.566 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.3217, allocations: 4 kB / 0.4951 GB, free: 3.562 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005881/0.3222, allocations: 155.8 kB / 0.4952 GB, free: 3.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003812/0.3226, allocations: 127.3 kB / 0.4953 GB, free: 3.273 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.364e-05/0.3227, allocations: 20 kB / 0.4954 GB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.172/0.4947, allocations: 5.309 MB / 0.5005 GB, free: 84.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.057e-05/0.4948, allocations: 7.656 kB / 0.5006 GB, free: 84.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01204/0.5068, allocations: 11.48 MB / 0.5118 GB, free: 76.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005055/0.5074, allocations: 383.8 kB / 0.5121 GB, free: 76.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002068/0.5076, allocations: 27.22 kB / 0.5122 GB, free: 76.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008638/0.5085, allocations: 50.88 kB / 0.5122 GB, free: 76.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.5086, allocations: 79.06 kB / 0.5123 GB, free: 76.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.734e-05/0.5087, allocations: 36.19 kB / 0.5123 GB, free: 76.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001743/0.5104, allocations: 1.454 MB / 0.5137 GB, free: 76.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5104, allocations: 3.5 kB / 0.5137 GB, free: 76.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003591/0.514, allocations: 1.374 MB / 0.5151 GB, free: 75.96 MB / 378.7 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.0002607/0.5143, allocations: 153.6 kB / 0.5152 GB, free: 75.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003469/0.5178, allocations: 2.695 MB / 0.5179 GB, free: 74.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.5178, allocations: 0 / 0.5179 GB, free: 74.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008241/0.5186, allocations: 0.8224 MB / 0.5187 GB, free: 73.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002609/0.5212, allocations: 0.5677 MB / 0.5192 GB, free: 73.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006074/0.5273, allocations: 6.231 MB / 0.5253 GB, free: 69.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008107/0.5282, allocations: 1.589 MB / 0.5269 GB, free: 68.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001399/0.5296, allocations: 324 kB / 0.5272 GB, free: 68.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002666/0.5298, allocations: 135.4 kB / 0.5273 GB, free: 68.09 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5299, allocations: 6.953 kB / 0.5273 GB, free: 68.09 MB / 378.7 MB Notification: Performance of Templates: time 0.04206/0.5719, allocations: 28.93 MB / 0.5555 GB, free: 39.51 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches