Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.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.001711/0.001711, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.002021/0.002021, allocations: 187.5 kB / 23.7 MB, free: 4.191 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.39/1.39, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 47.92 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2333, allocations: 52.19 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.002669/0.2359, allocations: 1.482 MB / 424 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.2377, allocations: 0.807 MB / 424.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.127e-05/0.2377, allocations: 4 kB / 424.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.594e-05/0.2378, allocations: 11.88 kB / 424.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.6e-05/0.2379, allocations: 15.86 kB / 424.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.2382, allocations: 55.88 kB / 424.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000223/0.2384, allocations: 139.7 kB / 425.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.169e-05/0.2385, allocations: 11.98 kB / 425.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004631/0.239, allocations: 387.3 kB / 425.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.2391, allocations: 71.62 kB / 425.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.549e-05/0.2391, allocations: 8 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.587e-05/0.2392, allocations: 12 kB / 425.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.116e-05/0.2393, allocations: 63.77 kB / 425.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.2394, allocations: 79.36 kB / 425.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000373/0.2397, allocations: 368.1 kB / 426.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2397, allocations: 3.984 kB / 426.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2397, allocations: 0 / 426.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.2397, allocations: 0 / 426.1 MB, free: 10.92 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007731/0.2405, allocations: 0.6621 MB / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.2406, allocations: 8.031 kB / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.88e-05/0.2406, allocations: 38.75 kB / 426.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.111e-05/0.2407, allocations: 40.7 kB / 426.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.241, allocations: 216.9 kB / 427 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.241, allocations: 4.375 kB / 427 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.241, allocations: 8.375 kB / 427 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003635/0.2414, allocations: 240.5 kB / 427.3 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.2414, allocations: 7.938 kB / 427.3 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.2414, allocations: 4 kB / 427.3 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.2414, allocations: 4 kB / 427.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002096/0.2416, allocations: 174.8 kB / 427.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006526/0.2423, allocations: 415.6 kB / 427.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.2425, allocations: 197.3 kB / 428.1 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/0.2427, allocations: 175.7 kB / 428.2 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.2427, allocations: 4.047 kB / 428.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004026/0.2431, allocations: 329.4 kB / 428.5 MB, free: 8.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.443e-06/0.2431, allocations: 0 / 428.5 MB, free: 8.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009131/0.244, allocations: 0.6927 MB / 429.2 MB, free: 7.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.2441, allocations: 166.2 kB / 429.4 MB, free: 7.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006404/0.2448, allocations: 0.5091 MB / 429.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.2448, allocations: 33.7 kB / 429.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.929e-05/0.2449, allocations: 101.1 kB / 430 MB, free: 6.504 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.743e-05/0.2449, allocations: 31.84 kB / 430.1 MB, free: 6.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.245, allocations: 81.55 kB / 430.2 MB, free: 6.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.2452, allocations: 326.8 kB / 430.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.2454, allocations: 174.8 kB / 430.6 MB, free: 5.863 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/0.2456, allocations: 196.4 kB / 430.8 MB, free: 5.641 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003537/0.2459, allocations: 351.4 kB / 431.2 MB, free: 5.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2459, allocations: 0 / 431.2 MB, free: 5.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006206/0.2465, allocations: 0.4913 MB / 431.7 MB, free: 4.695 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.057e-05/0.2466, allocations: 122.8 kB / 431.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2466, allocations: 4.031 kB / 431.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.2467, allocations: 7.984 kB / 431.8 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.759e-05/0.2467, allocations: 0 / 431.8 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.2467, allocations: 0 / 431.8 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.2468, allocations: 15.98 kB / 431.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.626e-05/0.2469, allocations: 43.94 kB / 431.9 MB, free: 4.48 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.yy,bUF3S.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0003487/0.2472, allocations: 362.2 kB / 432.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.224e-05/0.2473, allocations: 39.77 kB / 432.3 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.2474, allocations: 63.09 kB / 432.3 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2474, allocations: 0 / 432.3 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2474, allocations: 4 kB / 432.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2474, allocations: 11.92 kB / 432.3 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.2485, allocations: 0.8699 MB / 433.2 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2485, allocations: 0 / 433.2 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.368e-06/0.2485, allocations: 0 / 433.2 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.2485, allocations: 4 kB / 433.2 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.2485, allocations: 15.98 kB / 433.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.2485, allocations: 0 / 433.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2485, allocations: 3.938 kB / 433.2 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007245/0.2492, allocations: 0.6514 MB / 433.9 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003799/0.2496, allocations: 205.4 kB / 434.1 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.242e-05/0.2497, allocations: 12.25 kB / 434.1 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.2498, allocations: 11.98 kB / 434.1 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.2499, allocations: 27.92 kB / 434.1 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-05/0.25, allocations: 43.98 kB / 434.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004687/0.2504, allocations: 394.8 kB / 434.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2504, allocations: 0 / 434.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002744/0.2507, allocations: 40 kB / 434.6 MB, free: 1.551 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.001143/0.2518, allocations: 1.198 MB / 435.8 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006729/0.2525, allocations: 0.6085 MB / 436.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2525, allocations: 0 / 436.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003844/0.2529, allocations: 420.4 kB / 436.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006191/0.2535, allocations: 136.3 kB / 436.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003795/0.2573, allocations: 3.339 MB / 440.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.2576, allocations: 193.7 kB / 440.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.032e-05/0.2576, allocations: 16.7 kB / 440.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.471e-05/0.2577, allocations: 31.42 kB / 440.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2577, allocations: 3.938 kB / 440.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03299/0.2907, allocations: 6.78 MB / 447.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.32, allocations: 3.375 kB / 447.3 MB, free: 4.527 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0023933 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/BUF3S/BUF3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable bUF3S.y in file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.csv. Warning: Get data of variable bUF3S.y from file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.774925854988396]