Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.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.001497/0.001497, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001614/0.001614, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.395/1.395, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 43.92 kB / 378.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2364/0.2379, allocations: 53.36 MB / 431.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007416/0.2453, allocations: 6.071 MB / 438 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003201/0.2485, allocations: 1.741 MB / 439.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005287/0.249, allocations: 43.69 kB / 439.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005248/0.2496, allocations: 253.5 kB / 440 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004666/0.25, allocations: 213.8 kB / 440.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.2511, allocations: 0.5265 MB / 440.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001418/0.2525, allocations: 1.399 MB / 442.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006929/0.2532, allocations: 448.3 kB / 442.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006354/0.2538, allocations: 490.1 kB / 443.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000557/0.2544, allocations: 0.5012 MB / 443.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.2545, allocations: 124 kB / 443.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002166/0.2547, allocations: 136 kB / 443.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002143/0.2549, allocations: 263 kB / 444.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005361/0.2555, allocations: 0.6139 MB / 444.7 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00171/0.2572, allocations: 1.634 MB / 446.3 MB, free: 8.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.2572, allocations: 7.938 kB / 446.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2572, allocations: 0 / 446.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.2572, allocations: 4 kB / 446.4 MB, free: 8.328 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: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002086/0.2593, allocations: 1.428 MB / 447.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2593, allocations: 8.031 kB / 447.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.886e-05/0.2594, allocations: 30.41 kB / 447.8 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001897/0.2596, allocations: 177.7 kB / 448 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003778/0.2599, allocations: 167 kB / 448.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.2611, allocations: 0.6911 MB / 448.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.778e-05/0.2612, allocations: 94.34 kB / 448.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.2613, allocations: 124 kB / 449.1 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001921/0.2633, allocations: 1.26 MB / 450.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.999e-05/0.2633, allocations: 11.94 kB / 450.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.168e-05/0.2634, allocations: 52 kB / 450.4 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.67e-05/0.2634, allocations: 32 kB / 450.4 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.2647, allocations: 0.6851 MB / 451.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006951/0.2717, allocations: 6.68 MB / 457.8 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007655/0.2724, allocations: 245.2 kB / 458 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003614/0.2728, allocations: 161.6 kB / 458.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001143/0.2729, allocations: 11.98 kB / 458.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.2729, allocations: 30.56 kB / 458.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 4.629e-06/0.2729, allocations: 4 kB / 458.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002632/0.2756, allocations: 1.277 MB / 459.5 MB, free: 10.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/0.2756, allocations: 89.05 kB / 459.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008338/0.2765, allocations: 0.6648 MB / 460.3 MB, free: 9.715 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.2765, allocations: 29.7 kB / 460.3 MB, free: 9.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004961/0.277, allocations: 0.7054 MB / 461 MB, free: 8.965 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.2771, allocations: 123 kB / 461.1 MB, free: 8.844 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000188/0.2773, allocations: 142.6 kB / 461.3 MB, free: 8.699 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.2775, allocations: 382.8 kB / 461.6 MB, free: 8.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/0.2778, allocations: 153.9 kB / 461.8 MB, free: 8.164 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006121/0.2784, allocations: 0.551 MB / 462.3 MB, free: 7.418 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.001162/0.2795, allocations: 0.8164 MB / 463.1 MB, free: 6.406 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.2795, allocations: 4 kB / 463.1 MB, free: 6.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001322/0.2809, allocations: 0.7952 MB / 463.9 MB, free: 5.594 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.2809, allocations: 12 kB / 464 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/0.2809, allocations: 16.72 kB / 464 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002505/0.2812, allocations: 85.62 kB / 464.1 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005434/0.2817, allocations: 183.7 kB / 464.2 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002669/0.2844, allocations: 3.118 MB / 467.4 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003888/0.2848, allocations: 36 kB / 467.4 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-05/0.2848, allocations: 43.98 kB / 467.4 MB, free: 1.875 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.0004264/0.2852, allocations: 279.1 kB / 467.7 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.2854, allocations: 75.53 kB / 467.8 MB, free: 1.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.2855, allocations: 70.48 kB / 467.8 MB, free: 1.449 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2855, allocations: 7.984 kB / 467.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.2855, allocations: 0 / 467.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2855, allocations: 0 / 467.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/0.2873, allocations: 1.227 MB / 469.1 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2873, allocations: 0 / 469.1 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003086/0.2876, allocations: 63.91 kB / 469.1 MB, free: 88 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001537/0.2878, allocations: 61.77 kB / 469.2 MB, free: 20 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/0.2878, allocations: 8 kB / 469.2 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002199/0.29, allocations: 2.85 MB / 472.1 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.29, allocations: 0 / 472.1 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000889/0.2909, allocations: 0.6325 MB / 472.7 MB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.291, allocations: 67.55 kB / 472.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.819e-05/0.291, allocations: 4 kB / 472.8 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.2913, allocations: 19.98 kB / 472.8 MB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.974e-05/0.2913, allocations: 35.83 kB / 472.8 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.2914, allocations: 8 kB / 472.8 MB, free: 12.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005165/0.2919, allocations: 439 kB / 473.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2919, allocations: 0 / 473.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008169/0.2927, allocations: 160 kB / 473.4 MB, free: 11.55 MB / 382.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.001242/0.2939, allocations: 1.184 MB / 474.6 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.295, allocations: 0.636 MB / 475.2 MB, free: 9.664 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.295, allocations: 0 / 475.2 MB, free: 9.664 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005009/0.2955, allocations: 359.1 kB / 475.6 MB, free: 9.289 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005155/0.296, allocations: 82.19 kB / 475.7 MB, free: 9.215 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008715/0.3048, allocations: 6.464 MB / 482.1 MB, free: 2.191 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000709/0.3055, allocations: 1.034 MB / 483.2 MB, free: 1.129 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002825/0.3057, allocations: 90.02 kB / 483.2 MB, free: 1.039 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004748/0.3062, allocations: 427.2 kB / 483.7 MB, free: 0.625 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3062, allocations: 0 / 483.7 MB, free: 0.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04248/0.3487, allocations: 13.4 MB / 497.1 MB, free: 3.418 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.06, allocations: 8.5 kB / 497.1 MB, free: 3.41 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.483108509972226]