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.001273/0.001273, allocations: 81.58 kB / 20.68 MB, free: 1.023 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.001286/0.001286, allocations: 151.1 kB / 23.94 MB, free: 4.164 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.486/1.486, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.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: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.429e-05/2.618e-05, allocations: 7.562 kB / 318.9 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.005442/0.005468, allocations: 5.262 MB / 324.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004923/0.01039, allocations: 1.618 MB / 325.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009728/0.01136, allocations: 41.19 kB / 325.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006214/0.01199, allocations: 252.3 kB / 326.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007578/0.01274, allocations: 230.8 kB / 326.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001402/0.01415, allocations: 0.5033 MB / 326.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001896/0.01604, allocations: 1.435 MB / 328.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008439/0.01689, allocations: 414.1 kB / 328.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001384/0.01827, allocations: 0.7256 MB / 329.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005888/0.01886, allocations: 333.3 kB / 329.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001931/0.01905, allocations: 123.1 kB / 329.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003013/0.01935, allocations: 130.1 kB / 330 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002889/0.01964, allocations: 275.9 kB / 330.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000572/0.02021, allocations: 395.4 kB / 330.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002413/0.02263, allocations: 1.625 MB / 332.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.02263, allocations: 5.031 kB / 332.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.02263, allocations: 4 kB / 332.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.795e-05/0.02266, allocations: 0 / 332.3 MB, free: 11.32 MB / 302.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.002675/0.02534, allocations: 1.41 MB / 333.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.02539, allocations: 14.89 kB / 333.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.02569, allocations: 148.2 kB / 333.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.02711, allocations: 0.6724 MB / 334.5 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.248e-05/0.0272, allocations: 86.03 kB / 334.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/0.0274, allocations: 130.2 kB / 334.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002283/0.02968, allocations: 1.315 MB / 336 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.977e-05/0.02972, allocations: 7.781 kB / 336 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/0.02982, allocations: 53.91 kB / 336.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-05/0.02986, allocations: 32.31 kB / 336.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.03128, allocations: 0.6891 MB / 336.8 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007037/0.03831, allocations: 6.276 MB / 343.1 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007425/0.03905, allocations: 249.3 kB / 343.3 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003823/0.03944, allocations: 158.7 kB / 343.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.937e-05/0.03954, allocations: 10.31 kB / 343.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/0.03957, allocations: 37.69 kB / 343.5 MB, free: 1.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.565e-06/0.03957, allocations: 4 kB / 343.5 MB, free: 1.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002726/0.0423, allocations: 1.264 MB / 344.8 MB, free: 1.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.349e-05/0.04237, allocations: 87.7 kB / 344.9 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008279/0.0432, allocations: 0.6793 MB / 345.6 MB, free: 304 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.04323, allocations: 33.7 kB / 345.6 MB, free: 264 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005257/0.04376, allocations: 0.7016 MB / 346.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.928e-05/0.04386, allocations: 119 kB / 346.4 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.04406, allocations: 150.5 kB / 346.6 MB, free: 15.28 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.04427, allocations: 390.6 kB / 346.9 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002936/0.04456, allocations: 153.8 kB / 347.1 MB, free: 14.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006493/0.04521, allocations: 0.5472 MB / 347.6 MB, free: 13.99 MB / 318.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.001179/0.04639, allocations: 0.8018 MB / 348.4 MB, free: 12.99 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.0464, allocations: 8 kB / 348.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001388/0.04779, allocations: 0.788 MB / 349.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.04781, allocations: 12 kB / 349.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.04783, allocations: 20.09 kB / 349.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002832/0.04811, allocations: 81.69 kB / 349.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006082/0.04872, allocations: 183.7 kB / 349.5 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002939/0.05166, allocations: 3.064 MB / 352.6 MB, free: 8.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004675/0.05213, allocations: 35.98 kB / 352.6 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.587e-05/0.05219, allocations: 43.98 kB / 352.7 MB, free: 8.543 MB / 318.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.0006696/0.05286, allocations: 269.4 kB / 352.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.053, allocations: 71.53 kB / 353 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001334/0.05313, allocations: 70.36 kB / 353.1 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.05314, allocations: 7.938 kB / 353.1 MB, free: 8.121 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.05315, allocations: 8.047 kB / 353.1 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.05316, allocations: 4.078 kB / 353.1 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/0.05502, allocations: 1.055 MB / 354.2 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.05502, allocations: 0 / 354.2 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003296/0.05535, allocations: 63.95 kB / 354.2 MB, free: 6.941 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001737/0.05553, allocations: 57.78 kB / 354.3 MB, free: 6.879 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.05555, allocations: 11.94 kB / 354.3 MB, free: 6.867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002397/0.05795, allocations: 2.793 MB / 357.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.05795, allocations: 3.938 kB / 357.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009769/0.05893, allocations: 0.6355 MB / 357.7 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.372e-05/0.05902, allocations: 55.53 kB / 357.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.44e-05/0.05908, allocations: 12.05 kB / 357.8 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002647/0.05934, allocations: 19.94 kB / 357.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.638e-05/0.05942, allocations: 23.95 kB / 357.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.05944, allocations: 19.98 kB / 357.8 MB, free: 3.062 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005335/0.05998, allocations: 427 kB / 358.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.05998, allocations: 0 / 358.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009923/0.06097, allocations: 159.9 kB / 358.4 MB, free: 2.496 MB / 318.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.0001842/0.06116, allocations: 107.2 kB / 358.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001167/0.06232, allocations: 0.6364 MB / 359.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.06232, allocations: 0 / 359.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005175/0.06284, allocations: 353.1 kB / 359.5 MB, free: 1.352 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005607/0.0634, allocations: 78.14 kB / 359.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003145/0.06655, allocations: 1.714 MB / 361.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004748/0.06702, allocations: 446.9 kB / 361.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002322/0.06725, allocations: 85.92 kB / 361.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.06738, allocations: 60.47 kB / 361.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.06738, allocations: 3.938 kB / 361.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of Templates: time 0.01305/0.08044, allocations: 5.198 MB / 367.1 MB, free: 9.82 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] 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: 4.52499495446682]