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.001542/0.001542, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001677/0.001677, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.405/1.405, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.001598/0.001598, allocations: 47.86 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2772, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.00304/0.2802, allocations: 1.536 MB / 424.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001935/0.2822, allocations: 0.8498 MB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.394e-05/0.2822, allocations: 4 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.716e-05/0.2823, allocations: 7.922 kB / 425 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.821e-05/0.2824, allocations: 23.78 kB / 425 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003007/0.2827, allocations: 51.89 kB / 425.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002287/0.2829, allocations: 139.7 kB / 425.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.427e-05/0.283, allocations: 11.98 kB / 425.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005026/0.2835, allocations: 395.2 kB / 425.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.2837, allocations: 67.75 kB / 425.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.715e-05/0.2837, allocations: 8 kB / 425.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.188e-05/0.2837, allocations: 12 kB / 425.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.028e-05/0.2838, allocations: 63.7 kB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.284, allocations: 119.2 kB / 425.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003925/0.2844, allocations: 351 kB / 426.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2844, allocations: 0 / 426.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2844, allocations: 0 / 426.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.2844, allocations: 7.938 kB / 426.2 MB, free: 10.96 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.0008128/0.2852, allocations: 0.6668 MB / 426.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.2852, allocations: 8.031 kB / 426.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.915e-05/0.2853, allocations: 38.73 kB / 427 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.367e-05/0.2854, allocations: 40.7 kB / 427 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.2856, allocations: 216.8 kB / 427.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.2857, allocations: 12.38 kB / 427.2 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.155e-05/0.2857, allocations: 4.375 kB / 427.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.286, allocations: 129 kB / 427.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.286, allocations: 4 kB / 427.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.286, allocations: 4 kB / 427.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.286, allocations: 0 / 427.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.2861, allocations: 55.97 kB / 427.4 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006767/0.2868, allocations: 435.5 kB / 427.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.287, allocations: 74.53 kB / 427.9 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001378/0.2871, allocations: 60.89 kB / 428 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.2871, allocations: 4 kB / 428 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000397/0.2875, allocations: 202.6 kB / 428.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.353e-06/0.2875, allocations: 0 / 428.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008353/0.2884, allocations: 456.3 kB / 428.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.2885, allocations: 170.2 kB / 428.8 MB, free: 8.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006491/0.2891, allocations: 0.513 MB / 429.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.503e-05/0.2892, allocations: 37.7 kB / 429.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.757e-05/0.2893, allocations: 101.1 kB / 429.4 MB, free: 7.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.165e-05/0.2893, allocations: 23.81 kB / 429.5 MB, free: 7.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.2894, allocations: 81.55 kB / 429.5 MB, free: 7.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.2896, allocations: 330.8 kB / 429.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.2897, allocations: 51.97 kB / 429.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.2898, allocations: 69.69 kB / 430 MB, free: 6.949 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.2902, allocations: 347.2 kB / 430.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2902, allocations: 112 / 430.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000531/0.2907, allocations: 375 kB / 430.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.742e-05/0.2908, allocations: 130.8 kB / 430.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2908, allocations: 0 / 430.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.2909, allocations: 0 / 430.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.576e-05/0.2909, allocations: 0 / 430.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.2909, allocations: 7.938 kB / 430.8 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.291, allocations: 12.02 kB / 430.8 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.852e-05/0.2911, allocations: 43.94 kB / 430.9 MB, free: 5.945 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.000386/0.2915, allocations: 362.2 kB / 431.2 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.2915, allocations: 39.77 kB / 431.3 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.2916, allocations: 67.09 kB / 431.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2916, allocations: 0 / 431.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2916, allocations: 0 / 431.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2916, allocations: 0 / 431.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.2926, allocations: 0.789 MB / 432.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2926, allocations: 7.938 kB / 432.1 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.398e-06/0.2926, allocations: 3.938 kB / 432.1 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2926, allocations: 0 / 432.1 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.2927, allocations: 11.98 kB / 432.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.676e-06/0.2927, allocations: 4.188 kB / 432.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.2927, allocations: 7.938 kB / 432.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006532/0.2933, allocations: 0.5215 MB / 432.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003882/0.2937, allocations: 205.4 kB / 432.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.039e-05/0.2938, allocations: 8 kB / 432.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.2939, allocations: 15.98 kB / 432.9 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.99e-05/0.294, allocations: 23.92 kB / 432.9 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.672e-05/0.2941, allocations: 47.92 kB / 433 MB, free: 3.695 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004775/0.2945, allocations: 386.9 kB / 433.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2945, allocations: 0 / 433.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002796/0.2948, allocations: 40 kB / 433.4 MB, free: 3.277 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.001092/0.2959, allocations: 1.078 MB / 434.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005572/0.2965, allocations: 377.5 kB / 434.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2965, allocations: 0 / 434.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002985/0.2968, allocations: 301.6 kB / 435.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006321/0.2974, allocations: 128.3 kB / 435.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003631/0.301, allocations: 2.744 MB / 438 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005256/0.3016, allocations: 0.8021 MB / 438.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.044e-05/0.3016, allocations: 12.66 kB / 438.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.696e-05/0.3017, allocations: 31.42 kB / 438.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3017, allocations: 0 / 438.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03949/0.3412, allocations: 5.939 MB / 444.8 MB, free: 7.754 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.57, allocations: 7.938 kB / 444.8 MB, free: 7.746 MB / 350.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --stepSize=0.0023933 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.949385462095961]