Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.6/1.6, allocations: 226.5 MB / 244.7 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000776/0.000776, allocations: 101.2 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002763/0.0002765, allocations: 4 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2764, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.002358/0.2788, allocations: 1.603 MB / 409.6 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.2807, allocations: 1.122 MB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002048/0.2809, allocations: 0 / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006678/0.2816, allocations: 136.1 kB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004261/0.282, allocations: 136.9 kB / 411 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005991/0.2826, allocations: 172.9 kB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000257/0.2829, allocations: 175.5 kB / 411.4 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.2831, allocations: 30.8 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.2832, allocations: 60.28 kB / 411.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.2833, allocations: 80.3 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.485e-05/0.2834, allocations: 0 / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.2835, allocations: 46.34 kB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.244e-05/0.2836, allocations: 43.84 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.553e-05/0.2837, allocations: 89.25 kB / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002072/0.2839, allocations: 164.6 kB / 411.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2839, allocations: 0 / 411.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2839, allocations: 0 / 411.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2839, allocations: 0 / 411.9 MB, free: 23.86 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.0007967/0.2847, allocations: 498.2 kB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.2848, allocations: 8.031 kB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.029e-05/0.2848, allocations: 28.64 kB / 412.4 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.2852, allocations: 268 kB / 412.7 MB, free: 22.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.2852, allocations: 8.375 kB / 412.7 MB, free: 22.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.2852, allocations: 8.625 kB / 412.7 MB, free: 22.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003497/0.2856, allocations: 164.4 kB / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.2856, allocations: 0 / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.2856, allocations: 0 / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.2856, allocations: 0 / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.2857, allocations: 43.91 kB / 412.9 MB, free: 22.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005303/0.2863, allocations: 462.4 kB / 413.3 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.2865, allocations: 130.5 kB / 413.5 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.226e-05/0.2866, allocations: 55.42 kB / 413.5 MB, free: 22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.2866, allocations: 3.938 kB / 413.5 MB, free: 22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001844/0.2868, allocations: 97.08 kB / 413.6 MB, free: 21.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 3.156e-06/0.2868, allocations: 0 / 413.6 MB, free: 21.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004398/0.2873, allocations: 165.2 kB / 413.8 MB, free: 21.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.551e-05/0.2874, allocations: 162.6 kB / 413.9 MB, free: 21.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.2876, allocations: 277 kB / 414.2 MB, free: 21.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.2877, allocations: 25.7 kB / 414.2 MB, free: 21.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.127e-05/0.2877, allocations: 124.3 kB / 414.4 MB, free: 21.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.2878, allocations: 23.7 kB / 414.4 MB, free: 21.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-06/0.2878, allocations: 0 / 414.4 MB, free: 21.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.427e-05/0.2879, allocations: 334.8 kB / 414.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.953e-05/0.2879, allocations: 23.98 kB / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.784e-05/0.288, allocations: 78.92 kB / 414.8 MB, free: 20.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001383/0.2882, allocations: 93.11 kB / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2882, allocations: 0 / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002137/0.2884, allocations: 121.4 kB / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2884, allocations: 4 kB / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2885, allocations: 7.984 kB / 415 MB, free: 20.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2885, allocations: 160 / 415 MB, free: 20.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-05/0.2886, allocations: 23.94 kB / 415 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.2886, allocations: 0 / 415 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.26e-05/0.2887, allocations: 19.86 kB / 415.1 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.2887, allocations: 4 kB / 415.1 MB, free: 20.3 MB / 298.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,hold1.u,hold1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000106/0.2888, allocations: 141.8 kB / 415.2 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.821e-05/0.2889, allocations: 69.42 kB / 415.3 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.623e-05/0.289, allocations: 25.77 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.289, allocations: 4 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.289, allocations: 4 kB / 415.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.289, allocations: 7.875 kB / 415.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.2892, allocations: 229.6 kB / 415.5 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.2892, allocations: 0 / 415.5 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.809e-05/0.2892, allocations: 11.92 kB / 415.6 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.2892, allocations: 4 kB / 415.6 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.2892, allocations: 320 / 415.6 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2892, allocations: 4 kB / 415.6 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2892, allocations: 4 kB / 415.6 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.2895, allocations: 183.2 kB / 415.7 MB, free: 19.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.751e-05/0.2896, allocations: 116.8 kB / 415.9 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.2896, allocations: 0 / 415.9 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.403e-05/0.2897, allocations: 4 kB / 415.9 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.661e-05/0.2897, allocations: 23.91 kB / 415.9 MB, free: 19.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.2897, allocations: 4 kB / 415.9 MB, free: 19.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000186/0.2899, allocations: 204.5 kB / 416.1 MB, free: 19.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2899, allocations: 0 / 416.1 MB, free: 19.17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002752/0.2902, allocations: 27.91 kB / 416.1 MB, free: 19.14 MB / 298.7 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009992/0.2912, allocations: 421.5 kB / 416.5 MB, free: 18.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001991/0.2914, allocations: 83.84 kB / 416.6 MB, free: 18.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2915, allocations: 0 / 416.6 MB, free: 18.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-05/0.2915, allocations: 27.98 kB / 416.6 MB, free: 18.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004178/0.292, allocations: 64.86 kB / 416.7 MB, free: 18.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006342/0.2926, allocations: 395 kB / 417.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001774/0.2928, allocations: 0.7283 MB / 417.8 MB, free: 17.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.873e-05/0.2928, allocations: 23.44 kB / 417.8 MB, free: 17.49 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.2929, allocations: 0 / 417.8 MB, free: 17.49 MB / 298.7 MB Notification: Performance of Templates: time 0.004836/0.2977, allocations: 2.726 MB / 420.6 MB, free: 14.78 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches