Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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.001716/0.001716, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002229/0.002229, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.438/1.438, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.DCEE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 47.94 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2893, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.009364/0.2987, allocations: 7.056 MB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004789/0.3035, allocations: 2.458 MB / 440.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.3045, allocations: 27.88 kB / 440.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.3061, allocations: 0.517 MB / 441.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001363/0.3075, allocations: 488.4 kB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005328/0.308, allocations: 243.7 kB / 441.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.3098, allocations: 1.436 MB / 443.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006811/0.3105, allocations: 407.3 kB / 443.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009115/0.3114, allocations: 0.5681 MB / 444.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006645/0.312, allocations: 0.5794 MB / 444.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001698/0.3122, allocations: 136 kB / 445 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003408/0.3126, allocations: 172 kB / 445.1 MB, free: 8.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002474/0.3128, allocations: 279 kB / 445.4 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005225/0.3133, allocations: 0.5172 MB / 445.9 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001887/0.3152, allocations: 1.716 MB / 447.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3152, allocations: 0 / 447.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3152, allocations: 0 / 447.7 MB, free: 5.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.207e-05/0.3152, allocations: 8 kB / 447.7 MB, free: 5.973 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002639/0.3179, allocations: 1.392 MB / 449.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.3179, allocations: 8.031 kB / 449.1 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001903/0.3181, allocations: 144.3 kB / 449.2 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005718/0.3187, allocations: 176 kB / 449.4 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.3201, allocations: 0.661 MB / 450 MB, free: 3.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.265e-05/0.3202, allocations: 74 kB / 450.1 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.3203, allocations: 95.95 kB / 450.2 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/0.322, allocations: 0.9982 MB / 451.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.416e-05/0.322, allocations: 0 / 451.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.019e-05/0.3221, allocations: 43.98 kB / 451.2 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.334e-05/0.3221, allocations: 24 kB / 451.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.3234, allocations: 0.6246 MB / 451.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005759/0.3292, allocations: 3.499 MB / 455.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005807/0.3297, allocations: 269.2 kB / 455.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002884/0.33, allocations: 132.8 kB / 455.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.977e-05/0.3301, allocations: 4 kB / 455.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.3301, allocations: 46.38 kB / 455.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.154e-06/0.3301, allocations: 4 kB / 455.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.00247/0.3326, allocations: 1.04 MB / 456.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.451e-05/0.3327, allocations: 85.11 kB / 457 MB, free: 12.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.3338, allocations: 0.8407 MB / 457.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.326e-05/0.3339, allocations: 29.7 kB / 457.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004659/0.3343, allocations: 0.585 MB / 458.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.3344, allocations: 142.9 kB / 458.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001799/0.3346, allocations: 126.6 kB / 458.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3348, allocations: 333.9 kB / 459 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003122/0.3351, allocations: 145.9 kB / 459.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005619/0.3356, allocations: 485.7 kB / 459.6 MB, free: 9.414 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009154/0.3366, allocations: 0.6435 MB / 460.3 MB, free: 8.629 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.3366, allocations: 4 kB / 460.3 MB, free: 8.625 MB / 366.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001277/0.3378, allocations: 0.6886 MB / 461 MB, free: 7.926 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.3379, allocations: 8 kB / 461 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/0.3379, allocations: 12 kB / 461 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001817/0.3381, allocations: 37.34 kB / 461 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005091/0.3386, allocations: 159.8 kB / 461.2 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.3398, allocations: 1.287 MB / 462.5 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005834/0.3403, allocations: 35.98 kB / 462.5 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.891e-05/0.3404, allocations: 36 kB / 462.5 MB, free: 6.242 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004362/0.3408, allocations: 255.9 kB / 462.8 MB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.341, allocations: 95.38 kB / 462.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007569/0.3417, allocations: 382.3 kB / 463.2 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.3417, allocations: 11.94 kB / 463.3 MB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.3417, allocations: 0 / 463.3 MB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3417, allocations: 0 / 463.3 MB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.3436, allocations: 1.148 MB / 464.4 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.3436, allocations: 3.938 kB / 464.4 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003098/0.3439, allocations: 71.91 kB / 464.5 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001082/0.344, allocations: 29 kB / 464.5 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.344, allocations: 12 kB / 464.5 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009931/0.345, allocations: 1.267 MB / 465.8 MB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.345, allocations: 0 / 465.8 MB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.346, allocations: 0.6325 MB / 466.4 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002623/0.3463, allocations: 115.5 kB / 466.5 MB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.668e-05/0.3464, allocations: 15.97 kB / 466.5 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003471/0.3467, allocations: 23.92 kB / 466.6 MB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.969e-05/0.3468, allocations: 27.95 kB / 466.6 MB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/0.3468, allocations: 12 kB / 466.6 MB, free: 1.902 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007841/0.3476, allocations: 0.5654 MB / 467.2 MB, free: 1.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3476, allocations: 7.938 kB / 467.2 MB, free: 1.332 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007159/0.3483, allocations: 188 kB / 467.4 MB, free: 1.148 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001429/0.3497, allocations: 1.2 MB / 468.6 MB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009939/0.3507, allocations: 495.5 kB / 469 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3507, allocations: 0 / 469 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004051/0.3511, allocations: 260 kB / 469.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009738/0.3521, allocations: 213.2 kB / 469.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.3625, allocations: 7.115 MB / 476.6 MB, free: 7.363 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004946/0.363, allocations: 408.8 kB / 477 MB, free: 6.934 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003989/0.3634, allocations: 110.8 kB / 477.1 MB, free: 6.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004684/0.3639, allocations: 367.3 kB / 477.5 MB, free: 6.461 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3639, allocations: 4 kB / 477.5 MB, free: 6.457 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05812/0.422, allocations: 19.78 MB / 497.3 MB, free: 3.031 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.15, allocations: 8 kB / 497.3 MB, free: 3.023 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_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_DCEE_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.157877139019547]