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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008676/0.0008735, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.0009936/0.0009935, allocations: 182 kB / 17.56 MB, free: 6.203 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.372/1.372, allocations: 223.3 MB / 241.6 MB, free: 120 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003011/0.0003011, allocations: 8 kB / 301.5 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1224, allocations: 50.41 MB / 351.9 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.02054/0.143, allocations: 17.9 MB / 369.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.225/0.3681, allocations: 5.584 MB / 375.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002591/0.3707, allocations: 65.22 kB / 375.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003308/0.374, allocations: 1.15 MB / 376.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004023/0.3781, allocations: 1.041 MB / 377.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001622/0.3797, allocations: 0.5907 MB / 378.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004764/0.3845, allocations: 3.719 MB / 382 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002046/0.3865, allocations: 1.338 MB / 383.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002338/0.3889, allocations: 1.21 MB / 384.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001838/0.3907, allocations: 1.357 MB / 385.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003543/0.3911, allocations: 174.1 kB / 386.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006709/0.3918, allocations: 210.2 kB / 386.3 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004496/0.3922, allocations: 0.518 MB / 386.8 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001531/0.3938, allocations: 1.558 MB / 388.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003534/0.3973, allocations: 4.313 MB / 392.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3973, allocations: 0 / 392.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3973, allocations: 0 / 392.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.452e-05/0.3974, allocations: 4.938 kB / 392.7 MB, free: 4.191 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.004618/0.402, allocations: 2.806 MB / 395.5 MB, free: 2.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.4021, allocations: 11.5 kB / 395.5 MB, free: 2.199 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003583/0.4024, allocations: 359.4 kB / 395.8 MB, free: 1.922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001473/0.4039, allocations: 483.7 kB / 396.3 MB, free: 1.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002528/0.4065, allocations: 1.708 MB / 398 MB, free: 436 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.4066, allocations: 193.7 kB / 398.2 MB, free: 344 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003426/0.407, allocations: 257.4 kB / 398.5 MB, free: 256 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004281/0.4113, allocations: 2.481 MB / 400.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.491e-05/0.4113, allocations: 13.64 kB / 400.9 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001926/0.4115, allocations: 108.2 kB / 401.1 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.672e-05/0.4116, allocations: 62.5 kB / 401.1 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002975/0.4146, allocations: 1.661 MB / 402.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.013/0.4276, allocations: 10.69 MB / 413.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.4291, allocations: 1.065 MB / 414.5 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006704/0.4298, allocations: 379.4 kB / 414.9 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.943e-05/0.4299, allocations: 12.41 kB / 414.9 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/0.4299, allocations: 39.22 kB / 415 MB, free: 1.496 MB / 318.1 MB Notification: Performance of pre-optimization done (n=81): time 2.825e-06/0.4299, allocations: 0 / 415 MB, free: 1.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.005402/0.4353, allocations: 2.976 MB / 417.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.4354, allocations: 167.2 kB / 418.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003111/0.4386, allocations: 2.198 MB / 420.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.994e-05/0.4386, allocations: 41.7 kB / 420.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/0.4398, allocations: 1.466 MB / 421.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002588/0.44, allocations: 340.4 kB / 422.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.4402, allocations: 141.6 kB / 422.3 MB, free: 9.961 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.4403, allocations: 305.1 kB / 422.6 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006813/0.441, allocations: 367.8 kB / 422.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.4424, allocations: 1.246 MB / 424.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002065/0.4444, allocations: 1.749 MB / 425.9 MB, free: 5.469 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/0.4445, allocations: 8 kB / 425.9 MB, free: 5.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.002812/0.4473, allocations: 1.858 MB / 427.8 MB, free: 3.582 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006424/0.4479, allocations: 0.962 MB / 428.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.97e-05/0.448, allocations: 35.94 kB / 428.8 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004983/0.4485, allocations: 155.4 kB / 428.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.4496, allocations: 423.2 kB / 429.4 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003885/0.4535, allocations: 5.352 MB / 434.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.455, allocations: 99.94 kB / 434.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.693e-05/0.4551, allocations: 92 kB / 434.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.219e-06/0.4551, allocations: 0 / 434.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002409/0.4575, allocations: 1.6 MB / 436.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.01e-05/0.4575, allocations: 32.88 kB / 436.5 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003904/0.4579, allocations: 155.3 kB / 436.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.4591, allocations: 407.3 kB / 437.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003882/0.4629, allocations: 5.347 MB / 442.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.4644, allocations: 83.83 kB / 442.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.4645, allocations: 92 kB / 442.6 MB, free: 3.266 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.001144/0.4656, allocations: 0.5824 MB / 443.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002736/0.4659, allocations: 229.2 kB / 443.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00169/0.4676, allocations: 0.9379 MB / 444.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.4676, allocations: 8.188 kB / 444.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.4677, allocations: 12 kB / 444.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.4677, allocations: 3.984 kB / 444.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004637/0.4723, allocations: 3.146 MB / 447.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.4723, allocations: 4 kB / 447.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005896/0.4729, allocations: 159.8 kB / 447.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003883/0.4733, allocations: 123.7 kB / 447.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/0.4734, allocations: 27.98 kB / 447.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00386/0.4773, allocations: 5.312 MB / 453.1 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.039e-05/0.4773, allocations: 11.94 kB / 453.1 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002623/0.4799, allocations: 1.51 MB / 454.6 MB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001085/0.481, allocations: 386.2 kB / 455 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006063/0.4816, allocations: 24 kB / 455 MB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.4829, allocations: 67.89 kB / 455.1 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.4831, allocations: 80.34 kB / 455.2 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.893e-05/0.4831, allocations: 28 kB / 455.2 MB, free: 5.809 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003033/0.4862, allocations: 1.454 MB / 456.7 MB, free: 4.344 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4862, allocations: 0 / 456.7 MB, free: 4.344 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004249/0.4904, allocations: 0.9413 MB / 457.6 MB, free: 3.402 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.003085/0.4935, allocations: 2.126 MB / 459.7 MB, free: 1.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004963/0.4985, allocations: 2.709 MB / 462.5 MB, free: 14.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.405e-06/0.4985, allocations: 5 kB / 462.5 MB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.4997, allocations: 0.8388 MB / 463.3 MB, free: 13.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005155/0.5049, allocations: 0.5603 MB / 463.9 MB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04509/0.55, allocations: 22.86 MB / 486.7 MB, free: 3.133 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002674/0.5527, allocations: 1.571 MB / 488.3 MB, free: 1.531 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002077/0.5548, allocations: 323.2 kB / 488.6 MB, free: 1.211 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00188/0.5567, allocations: 1.058 MB / 489.7 MB, free: 156 kB / 398.1 MB Notification: Performance of SimCode: time 1.853e-06/0.5568, allocations: 0 / 489.7 MB, free: 156 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09292/0.6497, allocations: 46.91 MB / 0.524 GB, free: 1.773 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.6499, allocations: 254.4 kB / 0.5242 GB, free: 1.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.72/4.37, allocations: 0 / 0.5242 GB, free: 1.52 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics.fmu > 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