Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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.001782/0.001782, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.002069/0.002069, allocations: 188.3 kB / 23.72 MB, free: 4.719 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.426/1.426, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 51.92 kB / 370.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2694, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003685/0.2731, allocations: 1.947 MB / 424.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001994/0.2751, allocations: 1.091 MB / 425.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.2752, allocations: 7.938 kB / 425.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006584/0.2759, allocations: 147.6 kB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003251/0.2762, allocations: 127.5 kB / 425.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006027/0.2768, allocations: 213.9 kB / 426.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002745/0.2771, allocations: 183.5 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.2772, allocations: 21.73 kB / 426.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.2773, allocations: 83.58 kB / 426.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.2774, allocations: 75.67 kB / 426.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.2775, allocations: 12 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.2776, allocations: 71.88 kB / 426.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.273e-05/0.2777, allocations: 39.84 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.45e-05/0.2778, allocations: 75.47 kB / 426.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000324/0.2781, allocations: 203.6 kB / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.2781, allocations: 0 / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.2781, allocations: 4 kB / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.2781, allocations: 3.938 kB / 426.9 MB, free: 10.31 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006888/0.2788, allocations: 458.7 kB / 427.3 MB, free: 9.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.2788, allocations: 12.02 kB / 427.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.364e-05/0.2789, allocations: 38.75 kB / 427.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.792e-05/0.2789, allocations: 20.8 kB / 427.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003214/0.2792, allocations: 217.1 kB / 427.6 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.2792, allocations: 8.375 kB / 427.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.2793, allocations: 7.938 kB / 427.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003188/0.2796, allocations: 167.5 kB / 427.8 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.2796, allocations: 4 kB / 427.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.2796, allocations: 0 / 427.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.2796, allocations: 4 kB / 427.8 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.2797, allocations: 35.92 kB / 427.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005337/0.2802, allocations: 421.6 kB / 428.3 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.2805, allocations: 126.5 kB / 428.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.498e-05/0.2806, allocations: 55.42 kB / 428.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.2806, allocations: 8.062 kB / 428.4 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001888/0.2808, allocations: 93.03 kB / 428.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.342e-06/0.2808, allocations: 4 kB / 428.5 MB, free: 8.449 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003798/0.2812, allocations: 161.4 kB / 428.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.2813, allocations: 162.2 kB / 428.9 MB, free: 8.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.2816, allocations: 268.9 kB / 429.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.2816, allocations: 29.7 kB / 429.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.2817, allocations: 120.7 kB / 429.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/0.2817, allocations: 23.84 kB / 429.3 MB, free: 7.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.437e-05/0.2818, allocations: 33.7 kB / 429.3 MB, free: 7.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.2819, allocations: 330.8 kB / 429.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.087e-05/0.282, allocations: 19.94 kB / 429.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.2821, allocations: 78.84 kB / 429.7 MB, free: 7.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.2823, allocations: 97.05 kB / 429.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2823, allocations: 0 / 429.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002422/0.2825, allocations: 133.4 kB / 430 MB, free: 6.895 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.2825, allocations: 4 kB / 430 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2825, allocations: 4 kB / 430 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/0.2825, allocations: 0 / 430 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.976e-05/0.2826, allocations: 15.94 kB / 430 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.2826, allocations: 3.984 kB / 430 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.388e-05/0.2827, allocations: 15.94 kB / 430 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.2827, allocations: 4 kB / 430 MB, free: 6.848 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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.0001383/0.2828, allocations: 142 kB / 430.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.183e-05/0.2829, allocations: 69.48 kB / 430.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002287/0.2832, allocations: 107.6 kB / 430.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.2832, allocations: 8.047 kB / 430.3 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2832, allocations: 7.938 kB / 430.3 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.2832, allocations: 3.938 kB / 430.3 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.2834, allocations: 204.6 kB / 430.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2834, allocations: 64 / 430.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.717e-05/0.2834, allocations: 15.98 kB / 430.6 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2834, allocations: 0 / 430.6 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.2835, allocations: 4 kB / 430.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.2835, allocations: 0 / 430.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2835, allocations: 0 / 430.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002812/0.2837, allocations: 179.4 kB / 430.7 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.049e-05/0.2838, allocations: 31.89 kB / 430.8 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.689e-05/0.2838, allocations: 4 kB / 430.8 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.137e-05/0.2839, allocations: 7.984 kB / 430.8 MB, free: 5.984 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.2839, allocations: 7.938 kB / 430.8 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.284, allocations: 11.98 kB / 430.8 MB, free: 5.965 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002114/0.2842, allocations: 188.5 kB / 431 MB, free: 5.781 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2842, allocations: 0 / 431 MB, free: 5.781 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.2844, allocations: 47.81 kB / 431 MB, free: 5.734 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002023/0.2864, allocations: 1.013 MB / 432 MB, free: 4.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002243/0.2867, allocations: 75.84 kB / 432.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2867, allocations: 0 / 432.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.609e-05/0.2867, allocations: 27.98 kB / 432.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.2872, allocations: 67.92 kB / 432.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002407/0.2896, allocations: 1.996 MB / 434.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.2899, allocations: 0.7359 MB / 434.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.077e-05/0.29, allocations: 29.69 kB / 435 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.482e-05/0.2901, allocations: 43.42 kB / 435 MB, free: 1.715 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2901, allocations: 4 kB / 435 MB, free: 1.711 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03311/0.3232, allocations: 4.926 MB / 439.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.99, allocations: 10.91 kB / 440 MB, free: 12.86 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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.498462228104472]