Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 192.5 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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.DCEE_Start,fileNamePrefix="Modelica_4_0_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_0_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.001576/0.001576, allocations: 43.92 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2418, allocations: 52.19 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.009383/0.2512, allocations: 7.054 MB / 429.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004474/0.2556, allocations: 2.416 MB / 432.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008365/0.2565, allocations: 27.88 kB / 432.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001544/0.258, allocations: 0.5092 MB / 432.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001285/0.2593, allocations: 492.4 kB / 433.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005557/0.2599, allocations: 243.7 kB / 433.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001755/0.2616, allocations: 1.443 MB / 434.8 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006817/0.2623, allocations: 363.3 kB / 435.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008507/0.2631, allocations: 0.5603 MB / 435.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007156/0.2639, allocations: 0.4974 MB / 436.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000198/0.2641, allocations: 136 kB / 436.3 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003572/0.2644, allocations: 176 kB / 436.5 MB, free: 424 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002281/0.2646, allocations: 283 kB / 436.7 MB, free: 140 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000593/0.2652, allocations: 0.5249 MB / 437.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002068/0.2673, allocations: 1.712 MB / 439 MB, free: 13.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.2673, allocations: 4 kB / 439 MB, free: 13.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2673, allocations: 0 / 439 MB, free: 13.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.18e-05/0.2673, allocations: 0 / 439 MB, free: 13.89 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.002559/0.2699, allocations: 1.384 MB / 440.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.2699, allocations: 8.031 kB / 440.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001995/0.2701, allocations: 152.2 kB / 440.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005898/0.2707, allocations: 180 kB / 440.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.2722, allocations: 0.6648 MB / 441.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.778e-05/0.2722, allocations: 70 kB / 441.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.2724, allocations: 108 kB / 441.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.2741, allocations: 0.9905 MB / 442.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.707e-05/0.2741, allocations: 7.891 kB / 442.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.861e-05/0.2742, allocations: 40 kB / 442.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.2742, allocations: 24 kB / 442.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.2755, allocations: 0.6207 MB / 443.2 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00526/0.2807, allocations: 3.476 MB / 446.7 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005901/0.2813, allocations: 258.5 kB / 447 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002844/0.2816, allocations: 132.8 kB / 447.1 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.2816, allocations: 8 kB / 447.1 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.2817, allocations: 46.5 kB / 447.1 MB, free: 5.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 5.911e-06/0.2817, allocations: 3.984 kB / 447.1 MB, free: 5.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002358/0.284, allocations: 1.054 MB / 448.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.2841, allocations: 85.11 kB / 448.3 MB, free: 4.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.2853, allocations: 0.8446 MB / 449.1 MB, free: 3.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.2853, allocations: 33.7 kB / 449.2 MB, free: 3.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004514/0.2858, allocations: 0.5773 MB / 449.7 MB, free: 2.691 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.2859, allocations: 138.8 kB / 449.9 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.286, allocations: 126.6 kB / 450 MB, free: 2.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.2862, allocations: 341.9 kB / 450.3 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003079/0.2865, allocations: 145.9 kB / 450.5 MB, free: 1.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005713/0.2871, allocations: 489.6 kB / 450.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008756/0.2879, allocations: 0.6327 MB / 451.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.288, allocations: 4 kB / 451.6 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001216/0.2892, allocations: 0.693 MB / 452.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.2892, allocations: 8 kB / 452.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.2892, allocations: 12 kB / 452.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001632/0.2894, allocations: 36.84 kB / 452.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000507/0.2899, allocations: 155.7 kB / 452.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.291, allocations: 1.279 MB / 453.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.2915, allocations: 39.94 kB / 453.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.361e-05/0.2915, allocations: 36 kB / 453.8 MB, free: 14.16 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.0003444/0.2918, allocations: 253.5 kB / 454.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.292, allocations: 99.36 kB / 454.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007208/0.2927, allocations: 374.2 kB / 454.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.2927, allocations: 4 kB / 454.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.2927, allocations: 0 / 454.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.2927, allocations: 0 / 454.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/0.2946, allocations: 1.15 MB / 455.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.2946, allocations: 7.938 kB / 455.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003022/0.2949, allocations: 71.89 kB / 455.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.983e-05/0.2949, allocations: 24.89 kB / 455.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.295, allocations: 15.98 kB / 455.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009633/0.2959, allocations: 1.264 MB / 457.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.2959, allocations: 7.969 kB / 457.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009817/0.2969, allocations: 0.6289 MB / 457.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002695/0.2972, allocations: 119.4 kB / 457.8 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.559e-05/0.2973, allocations: 11.94 kB / 457.8 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003549/0.2976, allocations: 28.02 kB / 457.9 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.446e-05/0.2977, allocations: 27.95 kB / 457.9 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.2977, allocations: 19.92 kB / 457.9 MB, free: 9.816 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007431/0.2985, allocations: 0.5576 MB / 458.5 MB, free: 9.262 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2985, allocations: 0 / 458.5 MB, free: 9.262 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006762/0.2991, allocations: 192 kB / 458.7 MB, free: 9.074 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.00143/0.3006, allocations: 1.204 MB / 459.9 MB, free: 7.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.3016, allocations: 0.4928 MB / 460.4 MB, free: 7.316 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.3016, allocations: 0 / 460.4 MB, free: 7.316 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004218/0.302, allocations: 258.6 kB / 460.6 MB, free: 7.051 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009604/0.303, allocations: 210.2 kB / 460.8 MB, free: 6.852 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.3131, allocations: 7.124 MB / 467.9 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004575/0.3135, allocations: 412.9 kB / 468.3 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004191/0.314, allocations: 94.89 kB / 468.4 MB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004631/0.3144, allocations: 371.3 kB / 468.8 MB, free: 14.38 MB / 382.1 MB Notification: Performance of SimCode: time 1.372e-06/0.3144, allocations: 4 kB / 468.8 MB, free: 14.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08233/0.3968, allocations: 19.55 MB / 488.4 MB, free: 11.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.61, allocations: 64 / 488.4 MB, free: 11.18 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.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.47720190929249]