Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001805/0.001805, allocations: 118.7 kB / 18.5 MB, free: 4.574 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002249/0.002249, allocations: 210.5 kB / 21.46 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 67.89 kB / 373.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1115, allocations: 53.32 MB / 426.7 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2317/0.3432, allocations: 12.22 MB / 438.9 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005837/0.349, allocations: 3.307 MB / 442.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001598/0.3506, allocations: 37.5 kB / 442.2 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001796/0.3524, allocations: 0.6989 MB / 442.9 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002282/0.3547, allocations: 0.783 MB / 443.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009534/0.3556, allocations: 404 kB / 444.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003197/0.3588, allocations: 2.405 MB / 446.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001101/0.3599, allocations: 0.6495 MB / 447.2 MB, free: 176 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00181/0.3617, allocations: 0.9185 MB / 448.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001348/0.3631, allocations: 0.9775 MB / 449.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002934/0.3634, allocations: 233.2 kB / 449.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005272/0.3639, allocations: 266.5 kB / 449.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004394/0.3643, allocations: 463.3 kB / 450 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001281/0.3656, allocations: 1.076 MB / 451.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00422/0.3698, allocations: 2.84 MB / 453.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.3698, allocations: 1.125 kB / 453.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3698, allocations: 0 / 453.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.59e-05/0.3699, allocations: 0.6094 kB / 453.9 MB, free: 13.03 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004805/0.3747, allocations: 2.214 MB / 456.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3748, allocations: 8.688 kB / 456.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002985/0.3751, allocations: 229 kB / 456.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00108/0.3762, allocations: 292.9 kB / 456.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/0.3783, allocations: 1.127 MB / 457.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.3784, allocations: 122.7 kB / 457.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002332/0.3787, allocations: 159.2 kB / 458.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002785/0.3814, allocations: 1.502 MB / 459.6 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.3e-05/0.3815, allocations: 14.75 kB / 459.6 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001875/0.3817, allocations: 66.84 kB / 459.6 MB, free: 9.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.152e-05/0.3817, allocations: 39.89 kB / 459.7 MB, free: 9.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002159/0.3839, allocations: 1.048 MB / 460.7 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008773/0.3927, allocations: 6.247 MB / 467 MB, free: 3.844 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001574/0.3942, allocations: 0.5773 MB / 467.5 MB, free: 3.535 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009129/0.3952, allocations: 422 kB / 468 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.262e-05/0.3952, allocations: 8.188 kB / 468 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.896e-05/0.3952, allocations: 43.33 kB / 468 MB, free: 3.289 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.254e-06/0.3952, allocations: 3.938 kB / 468 MB, free: 3.285 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005495/0.4007, allocations: 2.397 MB / 470.4 MB, free: 1.727 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.615e-05/0.4008, allocations: 110.9 kB / 470.5 MB, free: 1.602 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002108/0.4029, allocations: 1.313 MB / 471.8 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.035e-05/0.403, allocations: 36.83 kB / 471.9 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007387/0.4037, allocations: 0.8726 MB / 472.7 MB, free: 52 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002638/0.404, allocations: 267.1 kB / 473 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003219/0.4043, allocations: 208.7 kB / 473.2 MB, free: 15.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.4045, allocations: 354.5 kB / 473.6 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006077/0.4051, allocations: 280.3 kB / 473.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.4061, allocations: 0.7354 MB / 474.6 MB, free: 14.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/0.4078, allocations: 1.092 MB / 475.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.4078, allocations: 3.469 kB / 475.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002433/0.4102, allocations: 1.259 MB / 476.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.4103, allocations: 13.88 kB / 476.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.4103, allocations: 18.06 kB / 476.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004894/0.4108, allocations: 134.6 kB / 477.1 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008304/0.4116, allocations: 261.4 kB / 477.3 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004671/0.4163, allocations: 4.64 MB / 482 MB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/0.4176, allocations: 60.86 kB / 482 MB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.939e-05/0.4177, allocations: 59.97 kB / 482.1 MB, free: 7.996 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007197/0.4184, allocations: 357.6 kB / 482.4 MB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002182/0.4187, allocations: 142.5 kB / 482.6 MB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/0.4204, allocations: 0.8281 MB / 483.4 MB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.4204, allocations: 8 kB / 483.4 MB, free: 7.059 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.4204, allocations: 3.938 kB / 483.4 MB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.4204, allocations: 3.984 kB / 483.4 MB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004134/0.4246, allocations: 2.331 MB / 485.8 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.4246, allocations: 8.094 kB / 485.8 MB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005646/0.4251, allocations: 127.8 kB / 485.9 MB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004419/0.4256, allocations: 137.6 kB / 486 MB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.604e-05/0.4256, allocations: 19.98 kB / 486 MB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004815/0.4304, allocations: 4.784 MB / 490.8 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/0.4305, allocations: 4 kB / 490.8 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.4329, allocations: 1.308 MB / 492.1 MB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006012/0.4335, allocations: 288.1 kB / 492.4 MB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002668/0.4338, allocations: 23.94 kB / 492.4 MB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007225/0.4345, allocations: 40.97 kB / 492.5 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.4346, allocations: 64.36 kB / 492.5 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.614e-05/0.4347, allocations: 23.98 kB / 492.6 MB, free: 13.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001483/0.4362, allocations: 0.8781 MB / 493.4 MB, free: 12.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4362, allocations: 3.938 kB / 493.5 MB, free: 12.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00154/0.4377, allocations: 328 kB / 493.8 MB, free: 12.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002991/0.4407, allocations: 1.877 MB / 495.6 MB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002226/0.4429, allocations: 1.091 MB / 496.7 MB, free: 8.977 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.443, allocations: 0.875 kB / 496.7 MB, free: 8.977 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.444, allocations: 0.6867 MB / 497.4 MB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001827/0.4459, allocations: 367.5 kB / 497.8 MB, free: 7.922 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02165/0.4675, allocations: 11.72 MB / 0.4976 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/0.4687, allocations: 1.214 MB / 0.4987 GB, free: 10.26 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007571/0.4694, allocations: 171.6 kB / 0.4989 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008723/0.4703, allocations: 0.6125 MB / 0.4995 GB, free: 9.473 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4703, allocations: 3.938 kB / 0.4995 GB, free: 9.469 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08172/0.552, allocations: 31.44 MB / 0.5302 GB, free: 10.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.49/15.05, allocations: 8 kB / 0.5302 GB, free: 10.34 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 20.26513919280842]