Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009138/0.0009138, allocations: 94.88 kB / 16.65 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 180.4 kB / 17.57 MB, free: 5.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002487/0.0002488, allocations: 9.344 kB / 301.4 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09258/0.09284, allocations: 50.42 MB / 351.8 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.0173/0.1102, allocations: 17.89 MB / 369.7 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1774/0.2876, allocations: 5.58 MB / 375.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003353/0.291, allocations: 69.03 kB / 375.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005029/0.2961, allocations: 1.151 MB / 376.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004805/0.3009, allocations: 1.036 MB / 377.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00186/0.3028, allocations: 0.5874 MB / 378.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006289/0.3091, allocations: 3.719 MB / 381.9 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002358/0.3114, allocations: 1.346 MB / 383.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002685/0.3142, allocations: 1.209 MB / 384.4 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00232/0.3165, allocations: 1.356 MB / 385.8 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000504/0.317, allocations: 174.3 kB / 386 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009987/0.318, allocations: 210.6 kB / 386.2 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004679/0.3185, allocations: 0.5152 MB / 386.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00233/0.3208, allocations: 1.56 MB / 388.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004503/0.3253, allocations: 4.314 MB / 392.6 MB, free: 4.242 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3254, allocations: 0 / 392.6 MB, free: 4.242 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3254, allocations: 0 / 392.6 MB, free: 4.242 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.939e-05/0.3255, allocations: 1.188 kB / 392.6 MB, free: 4.242 MB / 302.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.00549/0.3309, allocations: 2.804 MB / 395.4 MB, free: 2.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.331, allocations: 8.25 kB / 395.4 MB, free: 2.254 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001607/0.3326, allocations: 491.8 kB / 395.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002862/0.3355, allocations: 1.698 MB / 397.5 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.3356, allocations: 193.7 kB / 397.7 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003458/0.336, allocations: 265.8 kB / 398 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004518/0.3405, allocations: 2.486 MB / 400.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-05/0.3406, allocations: 17.91 kB / 400.5 MB, free: 15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001938/0.3408, allocations: 109.1 kB / 400.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.101e-05/0.3408, allocations: 61.62 kB / 400.7 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003158/0.344, allocations: 1.659 MB / 402.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01438/0.3584, allocations: 10.7 MB / 413 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.3599, allocations: 1.061 MB / 414.1 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006476/0.3606, allocations: 376.1 kB / 414.4 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.711e-05/0.3606, allocations: 12.66 kB / 414.5 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/0.3607, allocations: 47.16 kB / 414.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of pre-optimization done (n=81): time 2.675e-06/0.3607, allocations: 0 / 414.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.00592/0.3666, allocations: 2.965 MB / 417.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.3667, allocations: 167.2 kB / 417.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003309/0.3701, allocations: 2.206 MB / 419.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.656e-05/0.3701, allocations: 45.64 kB / 419.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001161/0.3713, allocations: 1.466 MB / 421.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002507/0.3716, allocations: 342.2 kB / 421.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.3717, allocations: 141.6 kB / 421.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3719, allocations: 301.1 kB / 422.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007008/0.3726, allocations: 371.8 kB / 422.5 MB, free: 9.688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.3739, allocations: 1.243 MB / 423.7 MB, free: 8.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002129/0.376, allocations: 1.746 MB / 425.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.308e-05/0.376, allocations: 8 kB / 425.5 MB, free: 5.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.003449/0.3795, allocations: 1.85 MB / 427.3 MB, free: 3.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000739/0.3802, allocations: 0.9682 MB / 428.3 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-05/0.3803, allocations: 28 kB / 428.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000577/0.3809, allocations: 163.3 kB / 428.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.3821, allocations: 415.3 kB / 428.9 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004104/0.3862, allocations: 5.363 MB / 434.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002037/0.3882, allocations: 95.78 kB / 434.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.3884, allocations: 100.1 kB / 434.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.145e-06/0.3884, allocations: 4 kB / 434.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003195/0.3916, allocations: 1.593 MB / 436 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.522e-05/0.3917, allocations: 32 kB / 436.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005172/0.3923, allocations: 143.6 kB / 436.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.3935, allocations: 415.2 kB / 436.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004639/0.3982, allocations: 5.339 MB / 442 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002457/0.4006, allocations: 88.03 kB / 442 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002684/0.4009, allocations: 96 kB / 442.1 MB, free: 3.66 MB / 350.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.001582/0.4025, allocations: 0.5789 MB / 442.7 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007652/0.4033, allocations: 229.2 kB / 442.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00223/0.4055, allocations: 0.9341 MB / 443.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.4056, allocations: 8 kB / 443.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.4056, allocations: 4.188 kB / 443.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.4056, allocations: 3.984 kB / 443.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00636/0.412, allocations: 3.149 MB / 447 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.412, allocations: 8 kB / 447 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006367/0.4127, allocations: 164.5 kB / 447.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004651/0.4131, allocations: 127.2 kB / 447.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.956e-05/0.4132, allocations: 24 kB / 447.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003975/0.4172, allocations: 5.316 MB / 452.7 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.4172, allocations: 4 kB / 452.7 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002663/0.4199, allocations: 1.514 MB / 454.2 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.421, allocations: 390.1 kB / 454.6 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005947/0.4216, allocations: 24 kB / 454.6 MB, free: 6.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.4229, allocations: 63.95 kB / 454.7 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.4231, allocations: 80.23 kB / 454.7 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-05/0.4231, allocations: 36 kB / 454.8 MB, free: 6.199 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002823/0.426, allocations: 1.458 MB / 456.2 MB, free: 4.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.426, allocations: 0 / 456.2 MB, free: 4.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004266/0.4302, allocations: 0.9413 MB / 457.2 MB, free: 3.789 MB / 366.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.0003359/0.4306, allocations: 151.2 kB / 457.3 MB, free: 3.633 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004547/0.4351, allocations: 2.717 MB / 460 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.4352, allocations: 0 / 460 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.4363, allocations: 0.8352 MB / 460.9 MB, free: 15.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005656/0.442, allocations: 0.5627 MB / 461.4 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009384/0.4514, allocations: 5.397 MB / 466.8 MB, free: 9.883 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001822/0.4533, allocations: 1.571 MB / 468.4 MB, free: 8.285 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001873/0.4552, allocations: 327.2 kB / 468.7 MB, free: 7.961 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004814/0.4557, allocations: 143.4 kB / 468.9 MB, free: 7.82 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4557, allocations: 0 / 468.9 MB, free: 7.82 MB / 382.1 MB Notification: Performance of Templates: time 0.05468/0.5104, allocations: 26.67 MB / 495.5 MB, free: 13.43 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches