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.001834/0.001834, allocations: 109.2 kB / 17.17 MB, free: 6.32 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.002503/0.002503, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.242/2.242, allocations: 222.9 MB / 241.7 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 49.23 kB / 300.6 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1696, allocations: 49.44 MB / 350.1 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.03133/0.201, allocations: 18.64 MB / 368.7 MB, free: 2.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3427/0.5438, allocations: 5.622 MB / 374.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005623/0.5495, allocations: 66.69 kB / 374.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007708/0.5573, allocations: 1.144 MB / 375.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008778/0.5661, allocations: 1.045 MB / 376.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004013/0.5702, allocations: 0.5922 MB / 377.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01218/0.5824, allocations: 3.721 MB / 380.9 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004865/0.5873, allocations: 1.357 MB / 382.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004887/0.5923, allocations: 1.307 MB / 383.5 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004747/0.5971, allocations: 1.498 MB / 385 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001911/0.599, allocations: 229.3 kB / 385.3 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003406/0.6025, allocations: 267.3 kB / 385.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00144/0.6039, allocations: 0.5926 MB / 386.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006568/0.6105, allocations: 1.628 MB / 387.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006629/0.6172, allocations: 3.73 MB / 391.5 MB, free: 4.289 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.6173, allocations: 0 / 391.5 MB, free: 4.289 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.6173, allocations: 0 / 391.5 MB, free: 4.289 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001759/0.6175, allocations: 1.25 kB / 391.5 MB, free: 4.289 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.01378/0.6313, allocations: 3.336 MB / 394.8 MB, free: 1.906 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.954e-05/0.6314, allocations: 8.188 kB / 394.8 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00329/0.6347, allocations: 482.1 kB / 395.3 MB, free: 1.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006846/0.6416, allocations: 1.701 MB / 397 MB, free: 424 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002884/0.6419, allocations: 190.3 kB / 397.2 MB, free: 336 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008857/0.6428, allocations: 264.6 kB / 397.4 MB, free: 240 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009192/0.652, allocations: 2.474 MB / 399.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001456/0.6522, allocations: 10.44 kB / 399.9 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004099/0.6526, allocations: 109.8 kB / 400 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.435e-05/0.6528, allocations: 63.81 kB / 400.1 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0068/0.6596, allocations: 1.649 MB / 401.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02863/0.6883, allocations: 10.66 MB / 412.4 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002381/0.6907, allocations: 1.043 MB / 413.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.6918, allocations: 363.5 kB / 413.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.85e-05/0.6919, allocations: 13.95 kB / 413.8 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.998e-05/0.692, allocations: 47.22 kB / 413.9 MB, free: 1.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=81): time 5.871e-06/0.692, allocations: 0 / 413.9 MB, free: 1.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.01251/0.7045, allocations: 2.92 MB / 416.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001583/0.7047, allocations: 167.2 kB / 417 MB, free: 14.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006409/0.7112, allocations: 2.202 MB / 419.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002808/0.7115, allocations: 41.7 kB / 419.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002261/0.7138, allocations: 1.465 MB / 420.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005741/0.7144, allocations: 335.5 kB / 421 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007269/0.7151, allocations: 331.1 kB / 421.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.7153, allocations: 301.1 kB / 421.6 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.7166, allocations: 376.7 kB / 422 MB, free: 9.406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002708/0.7193, allocations: 1.235 MB / 423.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003703/0.7231, allocations: 1.722 MB / 424.9 MB, free: 5.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.641e-05/0.7231, allocations: 8 kB / 424.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.006/0.7291, allocations: 1.834 MB / 426.8 MB, free: 3.746 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.842e-05/0.7292, allocations: 24.8 kB / 426.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-05/0.7293, allocations: 32 kB / 426.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000959/0.7303, allocations: 159.3 kB / 427 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002152/0.7325, allocations: 411.3 kB / 427.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007063/0.7395, allocations: 5.352 MB / 432.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004422/0.744, allocations: 91.78 kB / 432.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005022/0.7446, allocations: 92 kB / 432.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003189/0.7478, allocations: 0.7266 MB / 433.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002401/0.7502, allocations: 1.227 MB / 434.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003663/0.7539, allocations: 1.707 MB / 436.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.881e-05/0.754, allocations: 8 kB / 436.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=231) (initialization_lambda0): time 0.006447/0.7604, allocations: 1.811 MB / 438.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.291e-05/0.7606, allocations: 20 kB / 438.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.583e-05/0.7607, allocations: 28 kB / 438.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008647/0.7616, allocations: 155.7 kB / 438.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/0.7636, allocations: 407.3 kB / 439 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006141/0.7698, allocations: 5.362 MB / 444.4 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00429/0.7742, allocations: 88.03 kB / 444.4 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004594/0.7747, allocations: 96 kB / 444.5 MB, free: 48 kB / 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.0008023/0.7755, allocations: 308 kB / 444.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009768/0.7765, allocations: 229.2 kB / 445.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002853/0.7793, allocations: 0.9261 MB / 446 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.7794, allocations: 8 kB / 446 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.7794, allocations: 7.938 kB / 446 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.7794, allocations: 7.984 kB / 446 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.7895, allocations: 3.115 MB / 449.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.695e-05/0.7896, allocations: 4 kB / 449.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009651/0.7906, allocations: 152.5 kB / 449.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007552/0.7914, allocations: 131.3 kB / 449.4 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.979e-05/0.7915, allocations: 20 kB / 449.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006043/0.7975, allocations: 5.323 MB / 454.7 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.699e-05/0.7976, allocations: 19.88 kB / 454.8 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004393/0.802, allocations: 1.477 MB / 456.2 MB, free: 3.535 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002205/0.8042, allocations: 390.2 kB / 456.6 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007976/0.8051, allocations: 27.94 kB / 456.7 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/0.8068, allocations: 51.95 kB / 456.7 MB, free: 3.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002799/0.8071, allocations: 80.3 kB / 456.8 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.079e-05/0.8072, allocations: 31.98 kB / 456.8 MB, free: 2.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003958/0.8112, allocations: 1.458 MB / 458.3 MB, free: 1.477 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.665e-06/0.8112, allocations: 0 / 458.3 MB, free: 1.477 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.007678/0.8189, allocations: 0.9452 MB / 459.2 MB, free: 0.5312 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.0006109/0.8196, allocations: 146.6 kB / 459.4 MB, free: 388 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007188/0.8268, allocations: 2.696 MB / 462.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/0.8268, allocations: 0 / 462.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.8286, allocations: 0.8206 MB / 462.9 MB, free: 12.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005749/0.8344, allocations: 0.5628 MB / 463.4 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0141/0.8485, allocations: 5.329 MB / 468.8 MB, free: 6.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002147/0.8508, allocations: 1.567 MB / 470.3 MB, free: 5.133 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009298/0.8517, allocations: 147.4 kB / 470.5 MB, free: 4.988 MB / 382.1 MB Notification: Performance of SimCode: time 2.174e-06/0.8518, allocations: 0 / 470.5 MB, free: 4.988 MB / 382.1 MB Notification: Performance of Templates: time 0.4385/1.29, allocations: 78.59 MB / 0.5362 GB, free: 149.5 MB / 446.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/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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches