Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001835/0.001835, allocations: 124.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002139/0.002139, allocations: 207.3 kB / 20.75 MB, free: 2.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.421/1.421, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 51.92 kB / 373 MB, free: 10.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1141, allocations: 53.32 MB / 426.3 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2425/0.3566, allocations: 12.22 MB / 438.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006039/0.3626, allocations: 3.312 MB / 441.9 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001536/0.3641, allocations: 43.25 kB / 441.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001846/0.366, allocations: 0.6911 MB / 442.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002301/0.3683, allocations: 0.7867 MB / 443.4 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008773/0.3692, allocations: 400.6 kB / 443.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002881/0.3721, allocations: 2.417 MB / 446.2 MB, free: 388 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001138/0.3732, allocations: 0.6488 MB / 446.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001872/0.3751, allocations: 0.9334 MB / 447.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001536/0.3766, allocations: 0.9852 MB / 448.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003505/0.3769, allocations: 229.1 kB / 449 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006811/0.3776, allocations: 266.2 kB / 449.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004354/0.3781, allocations: 459.3 kB / 449.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001272/0.3793, allocations: 1.077 MB / 450.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003985/0.3833, allocations: 2.844 MB / 453.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3833, allocations: 1.828 kB / 453.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3833, allocations: 0 / 453.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.086e-05/0.3834, allocations: 0 / 453.6 MB, free: 12.82 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.004674/0.3881, allocations: 2.208 MB / 455.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.3881, allocations: 14.12 kB / 455.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002995/0.3884, allocations: 227.8 kB / 456 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009737/0.3894, allocations: 289.8 kB / 456.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002161/0.3916, allocations: 1.13 MB / 457.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.976e-05/0.3917, allocations: 120.7 kB / 457.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002372/0.3919, allocations: 159.8 kB / 457.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002866/0.3948, allocations: 1.506 MB / 459.2 MB, free: 9.387 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.622e-05/0.3948, allocations: 11.02 kB / 459.2 MB, free: 9.379 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001329/0.3949, allocations: 66.09 kB / 459.3 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.525e-05/0.395, allocations: 38.91 kB / 459.4 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002188/0.3972, allocations: 1.052 MB / 460.4 MB, free: 8.805 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009582/0.4068, allocations: 6.244 MB / 466.6 MB, free: 3.602 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.4084, allocations: 0.5809 MB / 467.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.4094, allocations: 426.8 kB / 467.6 MB, free: 3.086 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.733e-05/0.4095, allocations: 7.062 kB / 467.7 MB, free: 3.086 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.4095, allocations: 40.39 kB / 467.7 MB, free: 3.043 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.384e-06/0.4095, allocations: 0 / 467.7 MB, free: 3.043 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005756/0.4153, allocations: 2.389 MB / 470.1 MB, free: 1.496 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.023e-05/0.4153, allocations: 115.5 kB / 470.2 MB, free: 1.367 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002103/0.4174, allocations: 1.308 MB / 471.5 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.778e-05/0.4175, allocations: 37.11 kB / 471.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007482/0.4183, allocations: 0.8724 MB / 472.4 MB, free: 15.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002437/0.4185, allocations: 266.3 kB / 472.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000306/0.4188, allocations: 212.1 kB / 472.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.419, allocations: 348.2 kB / 473.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006018/0.4196, allocations: 283.1 kB / 473.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.4206, allocations: 0.7364 MB / 474.2 MB, free: 14.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001693/0.4223, allocations: 1.088 MB / 475.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.4223, allocations: 2.562 kB / 475.3 MB, free: 13.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00265/0.4249, allocations: 1.266 MB / 476.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.425, allocations: 12 kB / 476.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.425, allocations: 15.75 kB / 476.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005556/0.4255, allocations: 137.3 kB / 476.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008679/0.4264, allocations: 250.2 kB / 477 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004751/0.4312, allocations: 4.657 MB / 481.7 MB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/0.4327, allocations: 52.81 kB / 481.7 MB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.4328, allocations: 55.98 kB / 481.8 MB, free: 7.773 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.0008951/0.4337, allocations: 358.8 kB / 482.1 MB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003147/0.434, allocations: 142.5 kB / 482.2 MB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00197/0.436, allocations: 0.8227 MB / 483.1 MB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.436, allocations: 8 kB / 483.1 MB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.436, allocations: 4 kB / 483.1 MB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.436, allocations: 3.984 kB / 483.1 MB, free: 6.781 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00444/0.4405, allocations: 2.338 MB / 485.4 MB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.4405, allocations: 7.938 kB / 485.4 MB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005808/0.4411, allocations: 127.8 kB / 485.6 MB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004812/0.4415, allocations: 138.9 kB / 485.7 MB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.371e-05/0.4416, allocations: 16 kB / 485.7 MB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004817/0.4464, allocations: 4.786 MB / 490.5 MB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.4464, allocations: 8 kB / 490.5 MB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002792/0.4492, allocations: 1.304 MB / 491.8 MB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007578/0.45, allocations: 292.1 kB / 492.1 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001703/0.4501, allocations: 20 kB / 492.1 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006526/0.4508, allocations: 35.97 kB / 492.1 MB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.4509, allocations: 64.36 kB / 492.2 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.439e-05/0.451, allocations: 20 kB / 492.2 MB, free: 13 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001398/0.4524, allocations: 0.8859 MB / 493.1 MB, free: 12.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4524, allocations: 0 / 493.1 MB, free: 12.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001405/0.4538, allocations: 327.9 kB / 493.4 MB, free: 11.79 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.002891/0.4567, allocations: 1.89 MB / 495.3 MB, free: 9.816 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002145/0.4588, allocations: 1.086 MB / 496.4 MB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.4588, allocations: 0 / 496.4 MB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.4599, allocations: 0.6875 MB / 497.1 MB, free: 7.969 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001932/0.4619, allocations: 378.2 kB / 497.5 MB, free: 7.621 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01967/0.4815, allocations: 11.71 MB / 0.4972 GB, free: 11.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009516/0.4825, allocations: 1.214 MB / 0.4984 GB, free: 9.965 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006818/0.4832, allocations: 171.6 kB / 0.4986 GB, free: 9.793 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007945/0.484, allocations: 0.6125 MB / 0.4992 GB, free: 9.18 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.484, allocations: 3.938 kB / 0.4992 GB, free: 9.176 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09547/0.5794, allocations: 31.43 MB / 0.5299 GB, free: 10.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.14/14.71, allocations: 15.78 kB / 0.5299 GB, free: 10.1 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia1.phi in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.959376153012272]