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.001699/0.001699, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001877/0.001878, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 55.44 kB / 307 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1075, allocations: 50.55 MB / 357.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.1863/0.2938, allocations: 18.83 MB / 376.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01184/0.3057, allocations: 5.724 MB / 382.1 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003585/0.3093, allocations: 70.75 kB / 382.2 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004303/0.3137, allocations: 1.301 MB / 383.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004416/0.3181, allocations: 1.211 MB / 384.7 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.3198, allocations: 0.6756 MB / 385.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004838/0.3247, allocations: 3.908 MB / 389.3 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002011/0.3267, allocations: 1.586 MB / 390.8 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002664/0.3294, allocations: 1.452 MB / 392.3 MB, free: 3.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002344/0.3317, allocations: 1.586 MB / 393.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005673/0.3323, allocations: 372.1 kB / 394.3 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001057/0.3334, allocations: 411.1 kB / 394.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004004/0.3338, allocations: 0.726 MB / 395.4 MB, free: 2.402 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00155/0.3354, allocations: 1.778 MB / 397.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004549/0.3399, allocations: 4.538 MB / 401.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3399, allocations: 1.125 kB / 401.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.908e-06/0.3399, allocations: 1.062 kB / 401.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.798e-05/0.34, allocations: 3.938 kB / 401.7 MB, free: 13.94 MB / 318.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.006292/0.3463, allocations: 3.341 MB / 405 MB, free: 11.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.3464, allocations: 8.094 kB / 405 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001538/0.3479, allocations: 478.5 kB / 405.5 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0028/0.3507, allocations: 1.697 MB / 407.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/0.3509, allocations: 197 kB / 407.4 MB, free: 9.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003006/0.3512, allocations: 268.5 kB / 407.7 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003938/0.3551, allocations: 2.471 MB / 410.1 MB, free: 7.715 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.303e-05/0.3552, allocations: 11.84 kB / 410.1 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001998/0.3554, allocations: 111.9 kB / 410.3 MB, free: 7.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.344e-05/0.3555, allocations: 64 kB / 410.3 MB, free: 7.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002963/0.3585, allocations: 1.642 MB / 412 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01414/0.3726, allocations: 10.66 MB / 422.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.3741, allocations: 1.058 MB / 423.7 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006054/0.3747, allocations: 360.5 kB / 424 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.755e-05/0.3747, allocations: 8.656 kB / 424 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.3748, allocations: 43.16 kB / 424.1 MB, free: 9.074 MB / 334.1 MB Notification: Performance of pre-optimization done (n=81): time 2.595e-06/0.3748, allocations: 4 kB / 424.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.005744/0.3805, allocations: 2.908 MB / 427 MB, free: 6.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.3807, allocations: 171.2 kB / 427.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003214/0.3839, allocations: 2.202 MB / 429.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.602e-05/0.384, allocations: 41.7 kB / 429.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001116/0.3851, allocations: 1.47 MB / 430.9 MB, free: 2.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000255/0.3854, allocations: 335.4 kB / 431.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004066/0.3858, allocations: 331.1 kB / 431.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3859, allocations: 301.1 kB / 431.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000674/0.3866, allocations: 372.7 kB / 432.2 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/0.388, allocations: 1.239 MB / 433.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002146/0.3901, allocations: 1.722 MB / 435.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.357e-05/0.3901, allocations: 12 kB / 435.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.003181/0.3933, allocations: 1.834 MB / 437 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.3934, allocations: 18.81 kB / 437 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.138e-05/0.3934, allocations: 32 kB / 437 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005381/0.394, allocations: 155.8 kB / 437.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.3952, allocations: 411.3 kB / 437.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004435/0.3996, allocations: 5.769 MB / 443.4 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/0.4014, allocations: 95.88 kB / 443.5 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.4015, allocations: 92 kB / 443.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001466/0.403, allocations: 0.7226 MB / 444.3 MB, free: 3.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001323/0.4043, allocations: 1.227 MB / 445.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002125/0.4065, allocations: 1.703 MB / 447.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.366e-05/0.4065, allocations: 8 kB / 447.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.003188/0.4097, allocations: 1.811 MB / 449 MB, free: 13.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.4097, allocations: 20 kB / 449 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.933e-05/0.4098, allocations: 35.92 kB / 449.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000494/0.4103, allocations: 160 kB / 449.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.4114, allocations: 407.3 kB / 449.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004378/0.4158, allocations: 5.769 MB / 455.4 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001912/0.4177, allocations: 91.91 kB / 455.5 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.4178, allocations: 95.94 kB / 455.6 MB, free: 6.484 MB / 366.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.0004221/0.4183, allocations: 311.7 kB / 455.9 MB, free: 6.172 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003385/0.4186, allocations: 229.2 kB / 456.1 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/0.4204, allocations: 0.9184 MB / 457 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.4204, allocations: 8 kB / 457 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4205, allocations: 4 kB / 457 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.4205, allocations: 7.922 kB / 457 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005067/0.4255, allocations: 3.12 MB / 460.2 MB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.4256, allocations: 8.062 kB / 460.2 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006062/0.4262, allocations: 155.8 kB / 460.3 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004142/0.4266, allocations: 124 kB / 460.4 MB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.176e-05/0.4267, allocations: 24 kB / 460.5 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004583/0.4313, allocations: 5.719 MB / 466.2 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.4313, allocations: 7.938 kB / 466.2 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002776/0.4341, allocations: 1.491 MB / 467.7 MB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/0.4352, allocations: 386.2 kB / 468.1 MB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002493/0.4355, allocations: 20 kB / 468.1 MB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008963/0.4364, allocations: 63.89 kB / 468.1 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.4366, allocations: 72.36 kB / 468.2 MB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.682e-05/0.4366, allocations: 36 kB / 468.3 MB, free: 8.934 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002348/0.439, allocations: 1.454 MB / 469.7 MB, free: 7.469 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.439, allocations: 0 / 469.7 MB, free: 7.469 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003837/0.4429, allocations: 0.9492 MB / 470.7 MB, free: 6.52 MB / 382.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.0003524/0.4432, allocations: 155 kB / 470.8 MB, free: 6.359 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00478/0.448, allocations: 2.716 MB / 473.5 MB, free: 3.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.448, allocations: 4 kB / 473.5 MB, free: 3.551 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.4492, allocations: 0.8235 MB / 474.3 MB, free: 2.676 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003172/0.4524, allocations: 0.6073 MB / 475 MB, free: 2.086 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006976/0.4594, allocations: 4.224 MB / 479.2 MB, free: 13.76 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001341/0.4608, allocations: 1.563 MB / 480.7 MB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001501/0.4623, allocations: 331.2 kB / 481.1 MB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/0.4626, allocations: 135.4 kB / 481.2 MB, free: 11.7 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4626, allocations: 0 / 481.2 MB, free: 11.7 MB / 398.1 MB Notification: Performance of Templates: time 0.05656/0.5191, allocations: 28.18 MB / 0.4974 GB, free: 15.82 MB / 430.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DC_CompareCharacteristics/DC_CompareCharacteristics.csv","/var/lib/jenkins/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