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.001299/0.001299, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001379/0.001379, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9125/0.9125, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 1.914e-06/1.914e-06, allocations: 0 / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.058e-05/2.249e-05, allocations: 2.281 kB / 318.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.004857/0.004879, allocations: 5.257 MB / 323.7 MB, free: 1.043 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003007/0.007886, allocations: 1.617 MB / 325.3 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007871/0.008674, allocations: 39.69 kB / 325.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004946/0.009168, allocations: 253.5 kB / 325.6 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005517/0.00972, allocations: 241.5 kB / 325.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009682/0.01069, allocations: 0.4993 MB / 326.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.01169, allocations: 1.43 MB / 327.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005268/0.01222, allocations: 416.2 kB / 328.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005783/0.0128, allocations: 0.7211 MB / 328.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003196/0.01312, allocations: 342.7 kB / 329.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.01322, allocations: 124 kB / 329.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.01337, allocations: 128 kB / 329.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.01351, allocations: 274.9 kB / 329.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002577/0.01377, allocations: 398.9 kB / 330.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001081/0.01485, allocations: 1.616 MB / 331.8 MB, free: 8.949 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.01485, allocations: 0 / 331.8 MB, free: 8.949 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.01485, allocations: 4 kB / 331.8 MB, free: 8.945 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.01487, allocations: 0 / 331.8 MB, free: 8.945 MB / 298.7 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.001427/0.0163, allocations: 1.409 MB / 333.2 MB, free: 7.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.01634, allocations: 16.86 kB / 333.2 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001357/0.01647, allocations: 181.7 kB / 333.4 MB, free: 7.297 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.0166, allocations: 151.1 kB / 333.5 MB, free: 7.148 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007843/0.01738, allocations: 0.6718 MB / 334.2 MB, free: 6.449 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.821e-05/0.01743, allocations: 90.41 kB / 334.3 MB, free: 6.359 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.01753, allocations: 123.9 kB / 334.4 MB, free: 6.238 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.01879, allocations: 1.314 MB / 335.7 MB, free: 4.738 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.934e-05/0.01882, allocations: 7.938 kB / 335.7 MB, free: 4.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.264e-05/0.01889, allocations: 56 kB / 335.8 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.624e-05/0.01891, allocations: 32 kB / 335.8 MB, free: 4.645 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008869/0.0198, allocations: 0.6851 MB / 336.5 MB, free: 3.957 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003648/0.02345, allocations: 6.402 MB / 342.9 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004557/0.0239, allocations: 249.2 kB / 343.1 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002403/0.02414, allocations: 161.7 kB / 343.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.35e-05/0.02423, allocations: 19.92 kB / 343.3 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.02425, allocations: 39.06 kB / 343.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 1.503e-06/0.02425, allocations: 0 / 343.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001503/0.02575, allocations: 1.279 MB / 344.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.02579, allocations: 85.11 kB / 344.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005296/0.02632, allocations: 0.684 MB / 345.4 MB, free: 10.58 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.02634, allocations: 37.7 kB / 345.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002911/0.02663, allocations: 0.6938 MB / 346.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.33e-05/0.02669, allocations: 123 kB / 346.2 MB, free: 9.715 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.02681, allocations: 146.5 kB / 346.4 MB, free: 9.566 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.02693, allocations: 382.8 kB / 346.8 MB, free: 9.184 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.02711, allocations: 145.9 kB / 346.9 MB, free: 9.039 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.02746, allocations: 0.551 MB / 347.5 MB, free: 8.289 MB / 314.7 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.0007236/0.02818, allocations: 0.7946 MB / 348.3 MB, free: 7.297 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.02819, allocations: 8 kB / 348.3 MB, free: 7.289 MB / 314.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0007997/0.02899, allocations: 0.7996 MB / 349.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.02901, allocations: 8.188 kB / 349.1 MB, free: 6.469 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.02902, allocations: 20 kB / 349.1 MB, free: 6.449 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001779/0.0292, allocations: 77.69 kB / 349.2 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002958/0.0295, allocations: 179.7 kB / 349.3 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.03128, allocations: 3.102 MB / 352.4 MB, free: 2.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002079/0.03148, allocations: 28 kB / 352.5 MB, free: 2.836 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.5e-05/0.03152, allocations: 44 kB / 352.5 MB, free: 2.793 MB / 314.7 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.0002811/0.0318, allocations: 277.2 kB / 352.8 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.74e-05/0.03187, allocations: 83.42 kB / 352.9 MB, free: 2.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.707e-05/0.03193, allocations: 70.34 kB / 352.9 MB, free: 2.359 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.03194, allocations: 8.062 kB / 352.9 MB, free: 2.352 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.03194, allocations: 4 kB / 352.9 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.03195, allocations: 0 / 352.9 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.03308, allocations: 1.184 MB / 354.1 MB, free: 1.098 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.03308, allocations: 4 kB / 354.1 MB, free: 1.094 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.03325, allocations: 67.98 kB / 354.2 MB, free: 1.027 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-05/0.03334, allocations: 61.72 kB / 354.3 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.03336, allocations: 7.984 kB / 354.3 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00135/0.03471, allocations: 2.835 MB / 357.1 MB, free: 13.89 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.03472, allocations: 8.047 kB / 357.1 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005346/0.03525, allocations: 0.6354 MB / 357.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.027e-05/0.0353, allocations: 63.48 kB / 357.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.03533, allocations: 8.062 kB / 357.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.03546, allocations: 15.98 kB / 357.8 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.03551, allocations: 31.89 kB / 357.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.03552, allocations: 12 kB / 357.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003315/0.03585, allocations: 435 kB / 358.3 MB, free: 12.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.03585, allocations: 0 / 358.3 MB, free: 12.66 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005234/0.03637, allocations: 163.9 kB / 358.5 MB, free: 12.5 MB / 330.7 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.0007542/0.03713, allocations: 1.183 MB / 359.6 MB, free: 11.28 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006443/0.03777, allocations: 0.6371 MB / 360.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.03778, allocations: 0 / 360.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002496/0.03802, allocations: 357.4 kB / 360.6 MB, free: 10.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.03838, allocations: 75.3 kB / 360.7 MB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005546/0.04392, allocations: 6.282 MB / 367 MB, free: 3.375 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.04422, allocations: 454.7 kB / 367.4 MB, free: 2.895 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.04438, allocations: 86.02 kB / 367.5 MB, free: 2.809 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003214/0.0447, allocations: 424.4 kB / 367.9 MB, free: 2.395 MB / 330.7 MB Notification: Performance of SimCode: time 4.31e-07/0.0447, allocations: 4 kB / 367.9 MB, free: 2.391 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03085/0.07556, allocations: 13.58 MB / 381.5 MB, free: 5.055 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.404/7.48, allocations: 11.69 kB / 381.5 MB, free: 5.047 MB / 346.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/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: 9.211134376004338]