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.00178/0.00178, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002176/0.002176, allocations: 210.7 kB / 23.73 MB, free: 4.387 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.451/1.451, allocations: 230.6 MB / 257.5 MB, free: 7.797 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2542, allocations: 53.37 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.006958/0.2612, allocations: 5.297 MB / 436.4 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003605/0.2648, allocations: 1.683 MB / 438.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006985/0.2655, allocations: 43.69 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005805/0.2661, allocations: 253.5 kB / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005057/0.2666, allocations: 221.7 kB / 438.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.2676, allocations: 0.5227 MB / 439.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001515/0.2691, allocations: 1.391 MB / 440.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007089/0.2698, allocations: 450 kB / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006374/0.2705, allocations: 498.1 kB / 441.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005737/0.271, allocations: 0.4934 MB / 441.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.2712, allocations: 120 kB / 442 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002401/0.2714, allocations: 140 kB / 442.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002234/0.2717, allocations: 267 kB / 442.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000487/0.2721, allocations: 493.4 kB / 442.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001807/0.274, allocations: 1.653 MB / 444.6 MB, free: 9.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.274, allocations: 0 / 444.6 MB, free: 9.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.274, allocations: 0 / 444.6 MB, free: 9.098 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.506e-05/0.274, allocations: 3.938 kB / 444.6 MB, free: 9.094 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.00244/0.2764, allocations: 1.42 MB / 446 MB, free: 7.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.2765, allocations: 12.03 kB / 446 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002066/0.2767, allocations: 177.6 kB / 446.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004218/0.2771, allocations: 171 kB / 446.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/0.2785, allocations: 0.6872 MB / 447 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.341e-05/0.2785, allocations: 90.41 kB / 447.1 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.2787, allocations: 127.9 kB / 447.2 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00206/0.2808, allocations: 1.31 MB / 448.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.916e-05/0.2808, allocations: 7.938 kB / 448.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.68e-05/0.2809, allocations: 52 kB / 448.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.948e-05/0.2809, allocations: 32 kB / 448.6 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.2823, allocations: 0.689 MB / 449.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006312/0.2886, allocations: 6.419 MB / 455.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000729/0.2893, allocations: 253.1 kB / 456 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003925/0.2897, allocations: 157.7 kB / 456.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001145/0.2898, allocations: 11.98 kB / 456.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.2898, allocations: 34.56 kB / 456.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 2.565e-06/0.2898, allocations: 0 / 456.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002519/0.2924, allocations: 1.281 MB / 457.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.2924, allocations: 85.05 kB / 457.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008108/0.2932, allocations: 0.6841 MB / 458.2 MB, free: 10.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/0.2933, allocations: 33.7 kB / 458.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005168/0.2938, allocations: 0.7015 MB / 459 MB, free: 9.941 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.939e-05/0.2939, allocations: 123 kB / 459.1 MB, free: 9.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.2941, allocations: 146.5 kB / 459.2 MB, free: 9.672 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002592/0.2943, allocations: 382.8 kB / 459.6 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003569/0.2947, allocations: 145.9 kB / 459.8 MB, free: 9.145 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006154/0.2953, allocations: 0.555 MB / 460.3 MB, free: 8.395 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.2964, allocations: 0.8093 MB / 461.1 MB, free: 7.391 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.2965, allocations: 7.938 kB / 461.1 MB, free: 7.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001351/0.2978, allocations: 0.7956 MB / 461.9 MB, free: 6.574 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.2978, allocations: 12 kB / 461.9 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.2979, allocations: 16 kB / 462 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002626/0.2981, allocations: 81.91 kB / 462 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005492/0.2987, allocations: 175.7 kB / 462.2 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002751/0.3014, allocations: 3.11 MB / 465.3 MB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004048/0.3018, allocations: 32.31 kB / 465.4 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.723e-05/0.3019, allocations: 51.98 kB / 465.4 MB, free: 2.871 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.0004244/0.3023, allocations: 273.5 kB / 465.7 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.3024, allocations: 83.47 kB / 465.8 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.3025, allocations: 74.34 kB / 465.8 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3025, allocations: 7.938 kB / 465.8 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3026, allocations: 0 / 465.8 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.3026, allocations: 7.984 kB / 465.8 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.3044, allocations: 1.184 MB / 467 MB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3044, allocations: 3.938 kB / 467 MB, free: 1.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003334/0.3047, allocations: 67.95 kB / 467.1 MB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001584/0.3049, allocations: 53.62 kB / 467.1 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.3049, allocations: 8 kB / 467.2 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/0.3072, allocations: 2.835 MB / 470 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3072, allocations: 4.031 kB / 470 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009161/0.3081, allocations: 0.6286 MB / 470.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.3082, allocations: 71.53 kB / 470.7 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.645e-05/0.3083, allocations: 12.12 kB / 470.7 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.3086, allocations: 12 kB / 470.7 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.049e-05/0.3086, allocations: 35.83 kB / 470.7 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.3087, allocations: 7.984 kB / 470.8 MB, free: 13.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005306/0.3092, allocations: 439 kB / 471.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3092, allocations: 0 / 471.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000847/0.31, allocations: 152 kB / 471.3 MB, free: 12.59 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.001251/0.3113, allocations: 1.195 MB / 472.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.3125, allocations: 0.6255 MB / 473.2 MB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.3125, allocations: 8.062 kB / 473.2 MB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000507/0.313, allocations: 357.1 kB / 473.5 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005586/0.3136, allocations: 77.81 kB / 473.6 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008972/0.3226, allocations: 6.473 MB / 480.1 MB, free: 3.227 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004961/0.323, allocations: 446.9 kB / 480.5 MB, free: 2.754 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002634/0.3233, allocations: 94 kB / 480.6 MB, free: 2.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004804/0.3238, allocations: 423.3 kB / 481 MB, free: 2.25 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3238, allocations: 4 kB / 481 MB, free: 2.246 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05061/0.3744, allocations: 13.74 MB / 494.7 MB, free: 4.766 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.73, allocations: 5.812 kB / 494.7 MB, free: 4.766 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.189024495979538]