Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008441/0.0008441, allocations: 83.64 kB / 21.43 MB, free: 3.137 MB / 18.57 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.004125/0.004125, allocations: 164 kB / 24.7 MB, free: 9.414 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8614/0.8614, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 298.5 MB, free: 3.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.488e-05/1.666e-05, allocations: 2.281 kB / 298.5 MB, free: 3.508 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.1276/0.1276, allocations: 5.226 MB / 303.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002043/0.1296, allocations: 1.648 MB / 305.3 MB, free: 12.31 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003363/0.13, allocations: 41.47 kB / 305.4 MB, free: 12.29 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003723/0.1304, allocations: 252.3 kB / 305.6 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002965/0.1306, allocations: 228.4 kB / 305.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00065/0.1313, allocations: 0.5123 MB / 306.3 MB, free: 11.65 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008185/0.1321, allocations: 1.421 MB / 307.8 MB, free: 10.9 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004429/0.1326, allocations: 415 kB / 308.2 MB, free: 10.67 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005929/0.1332, allocations: 0.7303 MB / 308.9 MB, free: 10.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003126/0.1335, allocations: 334.9 kB / 309.2 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.1336, allocations: 121.6 kB / 309.4 MB, free: 10.2 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001748/0.1338, allocations: 138.5 kB / 309.5 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.1339, allocations: 268.4 kB / 309.7 MB, free: 9.996 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002343/0.1341, allocations: 398.5 kB / 310.1 MB, free: 9.797 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.1352, allocations: 1.625 MB / 311.8 MB, free: 9.137 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1352, allocations: 0 / 311.8 MB, free: 9.137 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1352, allocations: 0 / 311.8 MB, free: 9.137 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.1353, allocations: 0 / 311.8 MB, free: 9.137 MB / 282.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.00127/0.1365, allocations: 1.41 MB / 313.2 MB, free: 8.195 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1366, allocations: 15.55 kB / 313.2 MB, free: 8.191 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001395/0.1367, allocations: 177.5 kB / 313.4 MB, free: 8.074 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.1368, allocations: 148.9 kB / 313.5 MB, free: 7.996 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008018/0.1376, allocations: 0.6828 MB / 314.2 MB, free: 7.559 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.318e-05/0.1377, allocations: 86.94 kB / 314.3 MB, free: 7.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.1378, allocations: 123.4 kB / 314.4 MB, free: 7.477 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.139, allocations: 1.316 MB / 315.7 MB, free: 6.605 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.139, allocations: 6.688 kB / 315.7 MB, free: 6.602 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.162e-05/0.139, allocations: 55.12 kB / 315.8 MB, free: 6.562 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.1391, allocations: 31.62 kB / 315.8 MB, free: 6.562 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008017/0.1399, allocations: 0.6908 MB / 316.5 MB, free: 6.297 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002796/0.1427, allocations: 6.41 MB / 322.9 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004071/0.1431, allocations: 253 kB / 323.1 MB, free: 0.625 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002168/0.1433, allocations: 157.3 kB / 323.3 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.304e-05/0.1434, allocations: 12.95 kB / 323.3 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.583e-05/0.1434, allocations: 37 kB / 323.4 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of pre-optimization done (n=27): time 1.352e-06/0.1434, allocations: 0 / 323.4 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.001419/0.1448, allocations: 1.266 MB / 324.6 MB, free: 15.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.1448, allocations: 93.81 kB / 324.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005457/0.1454, allocations: 0.6831 MB / 325.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.1454, allocations: 31.92 kB / 325.4 MB, free: 15.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003173/0.1457, allocations: 0.6916 MB / 326.1 MB, free: 14.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.684e-05/0.1458, allocations: 127.3 kB / 326.2 MB, free: 14.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.1459, allocations: 144.2 kB / 326.4 MB, free: 14.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.146, allocations: 383.4 kB / 326.8 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.1462, allocations: 148.8 kB / 326.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003797/0.1466, allocations: 0.5497 MB / 327.5 MB, free: 13.22 MB / 298.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.0007107/0.1473, allocations: 0.8014 MB / 328.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1473, allocations: 4.719 kB / 328.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0008327/0.1481, allocations: 0.796 MB / 329.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1482, allocations: 16.5 kB / 329.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.1482, allocations: 13.38 kB / 329.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001694/0.1483, allocations: 78.75 kB / 329.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.1486, allocations: 188 kB / 329.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/0.1503, allocations: 3.097 MB / 332.4 MB, free: 8.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.1505, allocations: 34.59 kB / 332.5 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.954e-05/0.1505, allocations: 40.53 kB / 332.5 MB, free: 8.875 MB / 298.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.0002976/0.1508, allocations: 274.4 kB / 332.8 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.898e-05/0.1509, allocations: 77.55 kB / 332.9 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.485e-05/0.1509, allocations: 76.12 kB / 332.9 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.151, allocations: 6.375 kB / 332.9 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.151, allocations: 2.25 kB / 332.9 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.151, allocations: 1.188 kB / 332.9 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.1521, allocations: 1.178 MB / 334.1 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1521, allocations: 1.281 kB / 334.1 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.1523, allocations: 73.61 kB / 334.2 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001008/0.1524, allocations: 58 kB / 334.2 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.1524, allocations: 11.36 kB / 334.3 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001378/0.1538, allocations: 2.839 MB / 337.1 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.1538, allocations: 5.25 kB / 337.1 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005765/0.1544, allocations: 0.6254 MB / 337.7 MB, free: 4.316 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.796e-05/0.1544, allocations: 66.55 kB / 337.8 MB, free: 4.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.302e-05/0.1545, allocations: 7.531 kB / 337.8 MB, free: 4.266 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.1546, allocations: 21.42 kB / 337.8 MB, free: 4.254 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/0.1547, allocations: 30.42 kB / 337.9 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.1547, allocations: 9.562 kB / 337.9 MB, free: 4.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003241/0.155, allocations: 436.8 kB / 338.3 MB, free: 3.984 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.155, allocations: 0 / 338.3 MB, free: 3.984 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005219/0.1555, allocations: 158.5 kB / 338.4 MB, free: 3.965 MB / 298.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.001001/0.1565, allocations: 1.187 MB / 339.6 MB, free: 2.969 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000691/0.1572, allocations: 0.6315 MB / 340.3 MB, free: 2.547 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1572, allocations: 2.281 kB / 340.3 MB, free: 2.547 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.1575, allocations: 361.6 kB / 340.6 MB, free: 2.246 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003667/0.1578, allocations: 73.89 kB / 340.7 MB, free: 2.199 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005478/0.1633, allocations: 6.295 MB / 347 MB, free: 11.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.1637, allocations: 450.9 kB / 347.4 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001576/0.1639, allocations: 82.02 kB / 347.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003018/0.1642, allocations: 428.3 kB / 347.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of SimCode: time 9.12e-07/0.1642, allocations: 0 / 347.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02582/0.19, allocations: 13.61 MB / 361.5 MB, free: 13.24 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/7.945, allocations: 0 / 361.5 MB, free: 13.24 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable directCapacitor1.capacitor.v in file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable directCapacitor1.capacitor.v from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable directInductor3.inductor.i in file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable directInductor3.inductor.i from file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.602944514714181]