Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.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.001274/0.001274, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001495/0.001495, allocations: 188.3 kB / 23.72 MB, free: 4.719 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.409/1.409, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 47.94 kB / 370.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2586, allocations: 52.19 MB / 422.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007885/0.2665, allocations: 6.037 MB / 428.7 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00373/0.2702, allocations: 1.659 MB / 430.3 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007506/0.271, allocations: 35.75 kB / 430.4 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006571/0.2717, allocations: 245.6 kB / 430.6 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006792/0.2723, allocations: 225.7 kB / 430.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.2735, allocations: 0.5148 MB / 431.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001594/0.2751, allocations: 1.383 MB / 432.7 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008019/0.2759, allocations: 448.2 kB / 433.2 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006947/0.2766, allocations: 490.1 kB / 433.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006448/0.2773, allocations: 0.505 MB / 434.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.2774, allocations: 124 kB / 434.3 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002306/0.2777, allocations: 132 kB / 434.4 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002351/0.2779, allocations: 267.1 kB / 434.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005696/0.2785, allocations: 0.61 MB / 435.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001848/0.2803, allocations: 1.626 MB / 436.9 MB, free: 280 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.2803, allocations: 4 kB / 436.9 MB, free: 276 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2803, allocations: 4 kB / 436.9 MB, free: 272 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.067e-05/0.2803, allocations: 0 / 436.9 MB, free: 272 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002217/0.2826, allocations: 1.42 MB / 438.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.2826, allocations: 12.03 kB / 438.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002032/0.2828, allocations: 173.7 kB / 438.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001913/0.283, allocations: 155.1 kB / 438.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.2843, allocations: 0.6872 MB / 439.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.37e-05/0.2844, allocations: 94.34 kB / 439.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001639/0.2846, allocations: 116 kB / 439.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002139/0.2867, allocations: 1.264 MB / 440.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.671e-05/0.2867, allocations: 7.938 kB / 440.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.389e-05/0.2868, allocations: 52 kB / 440.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.419e-05/0.2869, allocations: 36 kB / 440.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.2882, allocations: 0.6851 MB / 441.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007015/0.2952, allocations: 6.676 MB / 448.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007341/0.2959, allocations: 249.2 kB / 448.5 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003658/0.2963, allocations: 157.6 kB / 448.7 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001075/0.2964, allocations: 11.98 kB / 448.7 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.2964, allocations: 38.55 kB / 448.7 MB, free: 3.832 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.234e-06/0.2964, allocations: 3.938 kB / 448.7 MB, free: 3.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002486/0.2989, allocations: 1.275 MB / 450 MB, free: 2.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/0.299, allocations: 85.03 kB / 450.1 MB, free: 2.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000889/0.2999, allocations: 0.6647 MB / 450.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.2999, allocations: 33.69 kB / 450.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005584/0.3005, allocations: 0.7016 MB / 451.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.3006, allocations: 123 kB / 451.6 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/0.3008, allocations: 142.5 kB / 451.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002303/0.301, allocations: 386.7 kB / 452.1 MB, free: 312 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002892/0.3013, allocations: 137.9 kB / 452.3 MB, free: 172 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006775/0.302, allocations: 0.5588 MB / 452.8 MB, free: 15.41 MB / 366.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/0.3032, allocations: 0.7951 MB / 453.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/0.3032, allocations: 4 kB / 453.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001343/0.3045, allocations: 0.7951 MB / 454.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.3046, allocations: 12 kB / 454.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/0.3046, allocations: 16 kB / 454.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002803/0.3049, allocations: 86.3 kB / 454.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005395/0.3054, allocations: 175.7 kB / 454.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0028/0.3082, allocations: 3.13 MB / 457.8 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004068/0.3086, allocations: 35.98 kB / 457.9 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.085e-05/0.3086, allocations: 47.94 kB / 457.9 MB, free: 9.883 MB / 366.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005524/0.3092, allocations: 273.4 kB / 458.2 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.3093, allocations: 79.55 kB / 458.3 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001217/0.3094, allocations: 74.34 kB / 458.3 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3094, allocations: 0 / 458.3 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.3095, allocations: 4 kB / 458.3 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3095, allocations: 0 / 458.3 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00185/0.3113, allocations: 1.211 MB / 459.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.3113, allocations: 8 kB / 459.6 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/0.3116, allocations: 63.89 kB / 459.6 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001565/0.3118, allocations: 53.69 kB / 459.7 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.3118, allocations: 11.98 kB / 459.7 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002365/0.3142, allocations: 2.846 MB / 462.5 MB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/0.3142, allocations: 4.031 kB / 462.5 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009459/0.3151, allocations: 0.6384 MB / 463.2 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.3152, allocations: 75.47 kB / 463.2 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.314e-05/0.3153, allocations: 8 kB / 463.2 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.3156, allocations: 12 kB / 463.3 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.755e-05/0.3156, allocations: 35.91 kB / 463.3 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.3157, allocations: 11.98 kB / 463.3 MB, free: 4.133 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005613/0.3162, allocations: 439 kB / 463.7 MB, free: 3.707 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3162, allocations: 0 / 463.7 MB, free: 3.707 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009066/0.3171, allocations: 156 kB / 463.9 MB, free: 3.555 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * 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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001276/0.3184, allocations: 1.189 MB / 465.1 MB, free: 2.324 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.3195, allocations: 0.6327 MB / 465.7 MB, free: 1.668 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3195, allocations: 0 / 465.7 MB, free: 1.668 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004988/0.32, allocations: 350.3 kB / 466.1 MB, free: 1.301 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005385/0.3206, allocations: 85.09 kB / 466.1 MB, free: 1.223 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009126/0.3297, allocations: 6.456 MB / 472.6 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000737/0.3304, allocations: 1.034 MB / 473.6 MB, free: 9.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002532/0.3307, allocations: 86.02 kB / 473.7 MB, free: 9.098 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004893/0.3312, allocations: 423.3 kB / 474.1 MB, free: 8.688 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3312, allocations: 0 / 474.1 MB, free: 8.688 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05152/0.3827, allocations: 13.31 MB / 487.4 MB, free: 11.56 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.48, allocations: 7.969 kB / 487.4 MB, free: 11.55 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable directCapacitor1.capacitor.v in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable directCapacitor1.capacitor.v from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable directInductor3.inductor.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable directInductor3.inductor.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.974404453001625]