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.001538/0.001538, allocations: 111.1 kB / 21.22 MB, free: 0.7305 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.001582/0.001582, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.374/1.374, allocations: 225.6 MB / 253.3 MB, free: 13.01 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 39.94 kB / 371.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2747, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007633/0.2823, allocations: 6.046 MB / 429.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003345/0.2856, allocations: 1.652 MB / 431.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009301/0.2866, allocations: 43.69 kB / 431.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007299/0.2873, allocations: 249.6 kB / 431.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008819/0.2882, allocations: 221.7 kB / 431.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.2896, allocations: 0.5109 MB / 432.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002013/0.2916, allocations: 1.387 MB / 433.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007506/0.2924, allocations: 444.3 kB / 434 MB, free: 4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006166/0.293, allocations: 0.4903 MB / 434.5 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006045/0.2936, allocations: 0.4895 MB / 434.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.2938, allocations: 124 kB / 435.1 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002576/0.294, allocations: 144 kB / 435.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002645/0.2943, allocations: 263.1 kB / 435.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005991/0.2949, allocations: 0.6138 MB / 436.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001934/0.2968, allocations: 1.623 MB / 437.7 MB, free: 260 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2968, allocations: 0 / 437.7 MB, free: 260 kB / 334.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.2968, allocations: 4 kB / 437.7 MB, free: 256 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.89e-05/0.2969, allocations: 0 / 437.7 MB, free: 256 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.002199/0.2991, allocations: 1.424 MB / 439.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.2991, allocations: 15.97 kB / 439.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.896e-05/0.2991, allocations: 30.41 kB / 439.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000192/0.2993, allocations: 177.7 kB / 439.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002106/0.2995, allocations: 147.1 kB / 439.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.3008, allocations: 0.6872 MB / 440.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.09e-05/0.3009, allocations: 86.41 kB / 440.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.301, allocations: 120 kB / 440.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001952/0.303, allocations: 1.264 MB / 441.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.313e-05/0.303, allocations: 7.875 kB / 441.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.354e-05/0.3031, allocations: 56 kB / 441.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.858e-05/0.3032, allocations: 32 kB / 441.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.3044, allocations: 0.6851 MB / 442.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006253/0.3107, allocations: 6.688 MB / 449.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006584/0.3114, allocations: 241.2 kB / 449.3 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003601/0.3117, allocations: 157.7 kB / 449.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.3118, allocations: 11.98 kB / 449.5 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.3119, allocations: 42.5 kB / 449.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.974e-06/0.3119, allocations: 0 / 449.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.00247/0.3143, allocations: 1.274 MB / 450.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.3144, allocations: 81.11 kB / 450.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008032/0.3152, allocations: 0.6647 MB / 451.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.3152, allocations: 33.7 kB / 451.6 MB, free: 1.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000535/0.3158, allocations: 0.6937 MB / 452.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.838e-05/0.3159, allocations: 123 kB / 452.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/0.3161, allocations: 150.5 kB / 452.6 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.3163, allocations: 382.8 kB / 452.9 MB, free: 272 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002887/0.3165, allocations: 149.9 kB / 453.1 MB, free: 120 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006192/0.3172, allocations: 0.5471 MB / 453.6 MB, free: 15.37 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.001143/0.3183, allocations: 0.7951 MB / 454.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.3183, allocations: 8 kB / 454.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001307/0.3196, allocations: 0.7919 MB / 455.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.3196, allocations: 16 kB / 455.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.301e-05/0.3197, allocations: 20 kB / 455.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002712/0.3199, allocations: 81.62 kB / 455.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005376/0.3205, allocations: 191.6 kB / 455.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002762/0.3232, allocations: 3.111 MB / 458.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003924/0.3236, allocations: 32 kB / 458.7 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.622e-05/0.3237, allocations: 44.19 kB / 458.7 MB, free: 9.848 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.0004221/0.3241, allocations: 281.3 kB / 459 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.3242, allocations: 79.48 kB / 459.1 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.3244, allocations: 74.34 kB / 459.1 MB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3244, allocations: 4 kB / 459.1 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.3244, allocations: 0 / 459.1 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3244, allocations: 0 / 459.1 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00201/0.3264, allocations: 1.215 MB / 460.4 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3264, allocations: 4 kB / 460.4 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003325/0.3267, allocations: 68 kB / 460.4 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.3269, allocations: 57.67 kB / 460.5 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.88e-05/0.3269, allocations: 8 kB / 460.5 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002465/0.3294, allocations: 2.862 MB / 463.4 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3294, allocations: 4.031 kB / 463.4 MB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009789/0.3304, allocations: 0.6395 MB / 464 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.3305, allocations: 59.48 kB / 464.1 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.032e-05/0.3306, allocations: 8.062 kB / 464.1 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.3308, allocations: 19.98 kB / 464.1 MB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.148e-05/0.3309, allocations: 31.89 kB / 464.1 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-05/0.331, allocations: 8 kB / 464.1 MB, free: 4.082 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006252/0.3316, allocations: 435 kB / 464.5 MB, free: 3.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3316, allocations: 0 / 464.5 MB, free: 3.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009466/0.3325, allocations: 156 kB / 464.7 MB, free: 3.508 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.001346/0.3339, allocations: 1.196 MB / 465.9 MB, free: 2.273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.3351, allocations: 0.633 MB / 466.5 MB, free: 1.621 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.3351, allocations: 4.125 kB / 466.5 MB, free: 1.617 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005327/0.3356, allocations: 357.1 kB / 466.9 MB, free: 1.242 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00053/0.3362, allocations: 75.17 kB / 467 MB, free: 1.172 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009982/0.3461, allocations: 6.458 MB / 473.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007542/0.3469, allocations: 1.027 MB / 474.4 MB, free: 9.141 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002726/0.3472, allocations: 93.95 kB / 474.5 MB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000545/0.3477, allocations: 423.3 kB / 474.9 MB, free: 8.637 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3477, allocations: 0 / 474.9 MB, free: 8.637 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04581/0.3935, allocations: 13.33 MB / 488.3 MB, free: 11.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.29, allocations: 6.812 kB / 488.3 MB, free: 11.5 MB / 398.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.707765298022423]