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.001096/0.001096, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.3 MB, free: 9.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 61.38 kB / 306.3 MB, free: 0.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1035, allocations: 50.54 MB / 356.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.1892/0.2928, allocations: 18.66 MB / 375.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009718/0.3026, allocations: 5.668 MB / 381.1 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00283/0.3054, allocations: 62.88 kB / 381.2 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003751/0.3093, allocations: 1.156 MB / 382.3 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003848/0.3132, allocations: 1.039 MB / 383.4 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.3146, allocations: 0.5927 MB / 384 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004268/0.3189, allocations: 3.723 MB / 387.7 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001749/0.3207, allocations: 1.35 MB / 389 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002187/0.3229, allocations: 1.316 MB / 390.4 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001568/0.3245, allocations: 1.492 MB / 391.9 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003627/0.3248, allocations: 230 kB / 392.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000662/0.3255, allocations: 266.8 kB / 392.3 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003775/0.3259, allocations: 0.596 MB / 392.9 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001396/0.3273, allocations: 1.634 MB / 394.6 MB, free: 2.316 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003248/0.3305, allocations: 4.438 MB / 399 MB, free: 15.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3306, allocations: 0 / 399 MB, free: 15.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.3306, allocations: 0 / 399 MB, free: 15.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.571e-05/0.3306, allocations: 1.375 kB / 399 MB, free: 15.34 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.005807/0.3364, allocations: 3.331 MB / 402.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.3365, allocations: 8.312 kB / 402.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.3382, allocations: 477.9 kB / 402.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002919/0.3411, allocations: 1.708 MB / 404.5 MB, free: 11.42 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.3413, allocations: 198.3 kB / 404.7 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002947/0.3416, allocations: 270.9 kB / 405 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003907/0.3455, allocations: 2.458 MB / 407.4 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.484e-05/0.3455, allocations: 21.64 kB / 407.5 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001926/0.3457, allocations: 107.5 kB / 407.6 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.662e-05/0.3458, allocations: 64.03 kB / 407.6 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003024/0.3488, allocations: 1.638 MB / 409.3 MB, free: 8.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01394/0.3628, allocations: 10.66 MB / 419.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/0.3641, allocations: 1.052 MB / 421 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005782/0.3647, allocations: 360.5 kB / 421.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.471e-05/0.3648, allocations: 12.64 kB / 421.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.71e-05/0.3648, allocations: 47.22 kB / 421.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=81): time 3.056e-06/0.3648, allocations: 0 / 421.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=90): time 0.005354/0.3702, allocations: 2.906 MB / 424.3 MB, free: 8.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.992e-05/0.3703, allocations: 167.2 kB / 424.5 MB, free: 8.141 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00301/0.3733, allocations: 2.206 MB / 426.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.112e-05/0.3734, allocations: 45.7 kB / 426.7 MB, free: 5.863 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001004/0.3744, allocations: 1.47 MB / 428.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/0.3746, allocations: 323.5 kB / 428.5 MB, free: 4.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003884/0.375, allocations: 339 kB / 428.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.923e-05/0.3751, allocations: 301.1 kB / 429.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006565/0.3758, allocations: 372.6 kB / 429.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/0.377, allocations: 1.239 MB / 430.7 MB, free: 1.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002078/0.3791, allocations: 1.73 MB / 432.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.348e-05/0.3791, allocations: 8 kB / 432.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.003333/0.3824, allocations: 1.842 MB / 434.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/0.3825, allocations: 16 kB / 434.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.947e-05/0.3825, allocations: 28 kB / 434.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005169/0.383, allocations: 159.8 kB / 434.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.3842, allocations: 411.2 kB / 434.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003914/0.3881, allocations: 5.348 MB / 440.3 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001887/0.39, allocations: 92 kB / 440.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.3901, allocations: 96 kB / 440.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001372/0.3915, allocations: 0.7265 MB / 441.2 MB, free: 5.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001163/0.3927, allocations: 1.219 MB / 442.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001912/0.3946, allocations: 1.711 MB / 444.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.1e-05/0.3947, allocations: 12 kB / 444.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.003091/0.3977, allocations: 1.811 MB / 445.9 MB, free: 360 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.3978, allocations: 20.16 kB / 445.9 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.827e-05/0.3978, allocations: 32 kB / 446 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00049/0.3983, allocations: 159.5 kB / 446.1 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/0.3995, allocations: 407.3 kB / 446.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00388/0.4033, allocations: 5.348 MB / 451.9 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001984/0.4054, allocations: 83.97 kB / 451.9 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/0.4055, allocations: 95.98 kB / 452 MB, free: 9.68 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.0004425/0.406, allocations: 331.4 kB / 452.4 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003321/0.4063, allocations: 237.1 kB / 452.6 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/0.4081, allocations: 0.9068 MB / 453.5 MB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.138e-06/0.4081, allocations: 11.94 kB / 453.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.4081, allocations: 4 kB / 453.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.4082, allocations: 7.969 kB / 453.5 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005199/0.4134, allocations: 3.116 MB / 456.6 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/0.4134, allocations: 4 kB / 456.6 MB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005981/0.414, allocations: 159.7 kB / 456.8 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004653/0.4145, allocations: 123.8 kB / 456.9 MB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.364e-05/0.4145, allocations: 27.98 kB / 457 MB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004109/0.4187, allocations: 5.32 MB / 462.3 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.4187, allocations: 4 kB / 462.3 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002461/0.4211, allocations: 1.491 MB / 463.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.4222, allocations: 398 kB / 464.2 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003675/0.4226, allocations: 20 kB / 464.2 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.424, allocations: 59.95 kB / 464.2 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/0.4242, allocations: 84.22 kB / 464.3 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-05/0.4242, allocations: 32 kB / 464.3 MB, free: 12.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003178/0.4274, allocations: 1.45 MB / 465.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4274, allocations: 0 / 465.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004676/0.4321, allocations: 0.9414 MB / 466.7 MB, free: 10.12 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.0003641/0.4325, allocations: 155.5 kB / 466.9 MB, free: 9.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004856/0.4374, allocations: 2.685 MB / 469.6 MB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.094e-06/0.4374, allocations: 0 / 469.6 MB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.4386, allocations: 0.8194 MB / 470.4 MB, free: 6.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003778/0.4424, allocations: 0.5547 MB / 470.9 MB, free: 5.777 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00825/0.4507, allocations: 5.278 MB / 476.2 MB, free: 408 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001543/0.4522, allocations: 1.571 MB / 477.8 MB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001671/0.4539, allocations: 323.2 kB / 478.1 MB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000412/0.4543, allocations: 139.4 kB / 478.3 MB, free: 14.34 MB / 398.1 MB Notification: Performance of SimCode: time 9.71e-07/0.4543, allocations: 0 / 478.3 MB, free: 14.34 MB / 398.1 MB Notification: Performance of Templates: time 0.05134/0.5057, allocations: 26.9 MB / 0.4933 GB, free: 3.699 MB / 414.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.0.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