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.0009672/0.0009672, allocations: 196 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 226.6 MB / 244.3 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.0007694/0.0007693, allocations: 92.75 kB / 296.4 MB, free: 6.777 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002116/0.0002116, allocations: 8 kB / 356.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.2187, allocations: 51.29 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.001875/0.2206, allocations: 1.59 MB / 409.1 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.222, allocations: 1.145 MB / 410.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.2221, allocations: 5.812 kB / 410.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004822/0.2226, allocations: 137.8 kB / 410.4 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002468/0.2228, allocations: 124.6 kB / 410.5 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004065/0.2233, allocations: 171.9 kB / 410.7 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001618/0.2234, allocations: 184.5 kB / 410.8 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.566e-05/0.2235, allocations: 26.69 kB / 410.9 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.746e-05/0.2236, allocations: 67.64 kB / 410.9 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.358e-05/0.2237, allocations: 68.44 kB / 411 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.2237, allocations: 7.938 kB / 411 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.261e-05/0.2238, allocations: 32.77 kB / 411 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.635e-05/0.2239, allocations: 47.81 kB / 411.1 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.683e-05/0.2239, allocations: 51.55 kB / 411.1 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.2241, allocations: 164.6 kB / 411.3 MB, free: 23.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2241, allocations: 3.938 kB / 411.3 MB, free: 23.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2241, allocations: 0 / 411.3 MB, free: 23.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.2241, allocations: 0 / 411.3 MB, free: 23.99 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.000525/0.2246, allocations: 493.3 kB / 411.8 MB, free: 23.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.021e-05/0.2247, allocations: 10.28 kB / 411.8 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.384e-05/0.2247, allocations: 23.72 kB / 411.8 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.225, allocations: 253.7 kB / 412.1 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.225, allocations: 15.88 kB / 412.1 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.225, allocations: 7.953 kB / 412.1 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002738/0.2253, allocations: 171.4 kB / 412.3 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.2253, allocations: 0 / 412.3 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.2253, allocations: 4 kB / 412.3 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.2253, allocations: 0 / 412.3 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.835e-05/0.2254, allocations: 39.92 kB / 412.3 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003857/0.2258, allocations: 454.5 kB / 412.7 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.226, allocations: 130.5 kB / 412.9 MB, free: 22.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.356e-05/0.2261, allocations: 59.42 kB / 412.9 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.2261, allocations: 0 / 412.9 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001381/0.2263, allocations: 93.03 kB / 413 MB, free: 22.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.2263, allocations: 7.938 kB / 413 MB, free: 22.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002988/0.2266, allocations: 157.2 kB / 413.2 MB, free: 21.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/0.2267, allocations: 158.2 kB / 413.3 MB, free: 21.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.2269, allocations: 280.9 kB / 413.6 MB, free: 21.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.2269, allocations: 25.7 kB / 413.6 MB, free: 21.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.212e-05/0.2269, allocations: 124.8 kB / 413.8 MB, free: 21.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.227, allocations: 23.8 kB / 413.8 MB, free: 21.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.227, allocations: 0 / 413.8 MB, free: 21.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.041e-05/0.227, allocations: 334.8 kB / 414.1 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.669e-05/0.2271, allocations: 27.98 kB / 414.1 MB, free: 20.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.828e-05/0.2272, allocations: 74.8 kB / 414.2 MB, free: 20.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.246e-05/0.2272, allocations: 32.02 kB / 414.2 MB, free: 20.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2273, allocations: 0 / 414.2 MB, free: 20.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001779/0.2274, allocations: 133.5 kB / 414.4 MB, free: 20.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.2275, allocations: 4.156 kB / 414.4 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.2275, allocations: 4 kB / 414.4 MB, free: 20.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.2275, allocations: 4.062 kB / 414.4 MB, free: 20.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.264e-05/0.2276, allocations: 19.94 kB / 414.4 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.2276, allocations: 3.984 kB / 414.4 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.038e-05/0.2276, allocations: 15.94 kB / 414.4 MB, free: 20.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-06/0.2277, allocations: 4 kB / 414.4 MB, free: 20.52 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 8.581e-05/0.2278, allocations: 141.8 kB / 414.6 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.395e-05/0.2278, allocations: 77.34 kB / 414.6 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.161e-05/0.2279, allocations: 25.7 kB / 414.7 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2279, allocations: 0 / 414.7 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2279, allocations: 0 / 414.7 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.2279, allocations: 7.984 kB / 414.7 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001346/0.228, allocations: 233.5 kB / 414.9 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.228, allocations: 0 / 414.9 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.451e-05/0.2281, allocations: 7.938 kB / 414.9 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.2281, allocations: 7.938 kB / 414.9 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.2281, allocations: 4 kB / 414.9 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2281, allocations: 8.062 kB / 414.9 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2281, allocations: 0 / 414.9 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/0.2283, allocations: 173.5 kB / 415.1 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.309e-05/0.2284, allocations: 112.8 kB / 415.2 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.542e-05/0.2284, allocations: 12 kB / 415.2 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.384e-05/0.2285, allocations: 7.984 kB / 415.2 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.2285, allocations: 4 kB / 415.2 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.2285, allocations: 4 kB / 415.2 MB, free: 19.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001367/0.2287, allocations: 200.5 kB / 415.4 MB, free: 19.4 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2287, allocations: 0 / 415.4 MB, free: 19.4 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002218/0.2289, allocations: 39.83 kB / 415.5 MB, free: 19.36 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.0007772/0.2297, allocations: 424 kB / 415.9 MB, free: 19.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001782/0.2299, allocations: 75.84 kB / 416 MB, free: 19.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.2299, allocations: 4 kB / 416 MB, free: 19.01 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.363e-05/0.23, allocations: 27.98 kB / 416 MB, free: 18.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.2303, allocations: 64.3 kB / 416 MB, free: 18.92 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004425/0.2308, allocations: 399 kB / 416.4 MB, free: 18.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.2309, allocations: 0.7283 MB / 417.2 MB, free: 17.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.891e-05/0.231, allocations: 23.42 kB / 417.2 MB, free: 17.71 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.231, allocations: 4 kB / 417.2 MB, free: 17.7 MB / 298.7 MB Notification: Performance of Templates: time 0.003444/0.2344, allocations: 2.734 MB / 419.9 MB, free: 14.98 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