Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.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.000833/0.000833, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001389/0.001389, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8999/0.8999, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.042e-06/1.042e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.226e-05/1.331e-05, allocations: 6.219 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001765/0.001778, allocations: 1.53 MB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.003199, allocations: 0.8536 MB / 327 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.888e-05/0.003258, allocations: 0 / 327 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.176e-05/0.00335, allocations: 11.88 kB / 327 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.85e-05/0.003428, allocations: 23.84 kB / 327 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.003697, allocations: 63.8 kB / 327 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001828/0.00388, allocations: 163.6 kB / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.00398, allocations: 13.59 kB / 327.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005171/0.004498, allocations: 0.6629 MB / 327.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.004615, allocations: 75.73 kB / 328 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.614e-05/0.004651, allocations: 12 kB / 328 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.861e-05/0.00468, allocations: 12 kB / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.853e-05/0.004748, allocations: 75.7 kB / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.928e-05/0.004817, allocations: 71.66 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003623/0.00518, allocations: 450.5 kB / 328.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.005182, allocations: 0 / 328.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.005183, allocations: 4 kB / 328.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.005188, allocations: 4 kB / 328.6 MB, free: 11.91 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005718/0.005759, allocations: 0.7491 MB / 329.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.005797, allocations: 12.03 kB / 329.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.748e-05/0.005835, allocations: 38.75 kB / 329.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.309e-05/0.005888, allocations: 44.66 kB / 329.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002188/0.006107, allocations: 243.9 kB / 329.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.006124, allocations: 4.375 kB / 329.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.006145, allocations: 12.38 kB / 329.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004254/0.006571, allocations: 314.6 kB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.006578, allocations: 192 / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.006598, allocations: 16.12 kB / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.006602, allocations: 0 / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001529/0.006755, allocations: 232.5 kB / 330.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004807/0.007235, allocations: 463.5 kB / 330.7 MB, free: 9.609 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000186/0.007421, allocations: 247 kB / 330.9 MB, free: 9.328 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.00756, allocations: 233.4 kB / 331.1 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.765e-06/0.007568, allocations: 112 / 331.1 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003151/0.007883, allocations: 397.5 kB / 331.5 MB, free: 8.625 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.344e-06/0.007885, allocations: 4 kB / 331.5 MB, free: 8.621 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006967/0.008582, allocations: 0.9159 MB / 332.5 MB, free: 7.609 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.064e-05/0.008653, allocations: 199.8 kB / 332.6 MB, free: 7.371 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004232/0.009076, allocations: 0.564 MB / 333.2 MB, free: 6.805 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.009099, allocations: 33.7 kB / 333.2 MB, free: 6.766 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003202/0.009419, allocations: 113.1 kB / 333.4 MB, free: 6.648 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.361e-05/0.009452, allocations: 35.78 kB / 333.4 MB, free: 6.613 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.817e-05/0.00954, allocations: 101.5 kB / 333.5 MB, free: 6.508 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.647e-05/0.009627, allocations: 330.8 kB / 333.8 MB, free: 6.176 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.009767, allocations: 232.5 kB / 334 MB, free: 5.918 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.009913, allocations: 249.1 kB / 334.3 MB, free: 5.641 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.01016, allocations: 454.6 kB / 334.7 MB, free: 5.129 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.01017, allocations: 0 / 334.7 MB, free: 5.129 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004518/0.01062, allocations: 0.6547 MB / 335.4 MB, free: 4.406 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.121e-05/0.01068, allocations: 152.5 kB / 335.5 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.01069, allocations: 4 kB / 335.5 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.0107, allocations: 0 / 335.5 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.691e-05/0.01071, allocations: 0 / 335.5 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.01072, allocations: 0 / 335.5 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.55e-05/0.01081, allocations: 19.98 kB / 335.6 MB, free: 4.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-05/0.01088, allocations: 101.5 kB / 335.7 MB, free: 4.102 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000236/0.01112, allocations: 404.3 kB / 336 MB, free: 3.668 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/0.01115, allocations: 47.7 kB / 336.1 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.444e-05/0.01122, allocations: 67.48 kB / 336.2 MB, free: 3.555 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.01122, allocations: 4 kB / 336.2 MB, free: 3.551 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.01122, allocations: 0 / 336.2 MB, free: 3.551 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.01123, allocations: 4 kB / 336.2 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007243/0.01195, allocations: 1.068 MB / 337.2 MB, free: 2.367 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.01195, allocations: 0 / 337.2 MB, free: 2.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.189e-06/0.01196, allocations: 4 kB / 337.2 MB, free: 2.363 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.01196, allocations: 4 kB / 337.2 MB, free: 2.359 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.01199, allocations: 19.98 kB / 337.3 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.01199, allocations: 0 / 337.3 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.01199, allocations: 0 / 337.3 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005389/0.01253, allocations: 0.8281 MB / 338.1 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002404/0.01277, allocations: 213.3 kB / 338.3 MB, free: 1.227 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.244e-05/0.01281, allocations: 12 kB / 338.3 MB, free: 1.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.472e-05/0.01289, allocations: 11.94 kB / 338.3 MB, free: 1.203 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.01301, allocations: 63.92 kB / 338.4 MB, free: 1.137 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.539e-05/0.01308, allocations: 101.4 kB / 338.5 MB, free: 1.039 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003352/0.01341, allocations: 426.8 kB / 338.9 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01341, allocations: 0 / 338.9 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002147/0.01363, allocations: 56 kB / 339 MB, free: 0.5742 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009888/0.01462, allocations: 1.373 MB / 340.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004893/0.01511, allocations: 0.7674 MB / 341.1 MB, free: 14.22 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.01511, allocations: 0 / 341.1 MB, free: 14.22 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002846/0.01539, allocations: 0.5287 MB / 341.6 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004882/0.01588, allocations: 189.4 kB / 341.8 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.01864, allocations: 3.991 MB / 345.8 MB, free: 9.156 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001692/0.01881, allocations: 207.9 kB / 346 MB, free: 8.93 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.678e-05/0.01887, allocations: 16.95 kB / 346 MB, free: 8.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.01892, allocations: 44.48 kB / 346.1 MB, free: 8.867 MB / 314.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01892, allocations: 0 / 346.1 MB, free: 8.867 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02006/0.03898, allocations: 10.57 MB / 356.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.813/6.852, allocations: 14.61 kB / 356.6 MB, free: 14.32 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00299162 Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Mux2x1.out in file Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv. Warning: Get data of variable Mux2x1.out from file Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.691152187995613]