Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001202/0.001202, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 212.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 55.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.227, allocations: 50.55 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003098/0.2301, allocations: 1.925 MB / 411.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.232, allocations: 1.231 MB / 413.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.2321, allocations: 7.938 kB / 413.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005537/0.2327, allocations: 155.5 kB / 413.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003688/0.2331, allocations: 155.4 kB / 413.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004448/0.2335, allocations: 174.8 kB / 413.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002393/0.2338, allocations: 207.4 kB / 413.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.2339, allocations: 29.67 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.234, allocations: 83.62 kB / 413.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.2341, allocations: 75.62 kB / 413.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.2342, allocations: 12 kB / 414 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001435/0.2343, allocations: 59.91 kB / 414 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.814e-05/0.2344, allocations: 47.83 kB / 414.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.811e-05/0.2345, allocations: 75.48 kB / 414.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002832/0.2348, allocations: 222.9 kB / 414.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.2348, allocations: 0 / 414.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2348, allocations: 3.938 kB / 414.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.2348, allocations: 0 / 414.4 MB, free: 13.15 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.0006926/0.2355, allocations: 0.517 MB / 414.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2355, allocations: 16.03 kB / 414.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.66e-05/0.2356, allocations: 20.66 kB / 414.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003202/0.2359, allocations: 286.7 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.236, allocations: 12.31 kB / 415.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.236, allocations: 8.125 kB / 415.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003257/0.2363, allocations: 171.6 kB / 415.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.2363, allocations: 0 / 415.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.2363, allocations: 0 / 415.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2364, allocations: 3.938 kB / 415.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001127/0.2365, allocations: 43.91 kB / 415.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004386/0.2369, allocations: 383.1 kB / 415.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.2372, allocations: 134.5 kB / 415.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.837e-05/0.2373, allocations: 55.42 kB / 416 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.2373, allocations: 0 / 416 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001514/0.2374, allocations: 87.31 kB / 416.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.452e-06/0.2375, allocations: 0 / 416.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003519/0.2378, allocations: 153.3 kB / 416.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.718e-05/0.2379, allocations: 162.6 kB / 416.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002777/0.2382, allocations: 290.5 kB / 416.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.2382, allocations: 25.7 kB / 416.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.439e-05/0.2383, allocations: 116.4 kB / 416.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.493e-05/0.2383, allocations: 23.86 kB / 416.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.57e-05/0.2384, allocations: 29.72 kB / 416.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.2385, allocations: 334.8 kB / 417.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.105e-05/0.2386, allocations: 23.98 kB / 417.2 MB, free: 9.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.391e-05/0.2387, allocations: 87.66 kB / 417.3 MB, free: 9.867 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.2388, allocations: 93.97 kB / 417.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2389, allocations: 0 / 417.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002133/0.2391, allocations: 133.2 kB / 417.5 MB, free: 9.617 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2391, allocations: 6.812 kB / 417.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.2391, allocations: 0 / 417.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.2391, allocations: 8.188 kB / 417.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.034e-05/0.2392, allocations: 19.98 kB / 417.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.2392, allocations: 0 / 417.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.246e-05/0.2393, allocations: 15.88 kB / 417.6 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.2393, allocations: 4 kB / 417.6 MB, free: 9.566 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001309/0.2394, allocations: 149.7 kB / 417.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.71e-05/0.2396, allocations: 81.28 kB / 417.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.667e-05/0.2396, allocations: 29.8 kB / 417.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.2396, allocations: 0 / 417.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.2396, allocations: 4.312 kB / 417.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.2396, allocations: 3.938 kB / 417.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.2398, allocations: 229.6 kB / 418.1 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.2399, allocations: 7.984 kB / 418.1 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.671e-05/0.2399, allocations: 4 kB / 418.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.2399, allocations: 4 kB / 418.1 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.2399, allocations: 7.938 kB / 418.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.2399, allocations: 4 kB / 418.1 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2399, allocations: 4 kB / 418.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.2402, allocations: 171.3 kB / 418.3 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.44e-05/0.2403, allocations: 112.9 kB / 418.4 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.2403, allocations: 3.984 kB / 418.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.708e-05/0.2404, allocations: 12 kB / 418.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.382e-05/0.2404, allocations: 4 kB / 418.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.2405, allocations: 19.8 kB / 418.4 MB, free: 8.613 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001844/0.2407, allocations: 206 kB / 418.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2407, allocations: 0 / 418.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002704/0.2409, allocations: 35.94 kB / 418.6 MB, free: 8.379 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (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.0008996/0.2418, allocations: 413.3 kB / 419 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002036/0.2421, allocations: 83.84 kB / 419.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2421, allocations: 0 / 419.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.411e-05/0.2421, allocations: 16 kB / 419.1 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004134/0.2426, allocations: 79.25 kB / 419.2 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000549/0.2431, allocations: 376.3 kB / 419.6 MB, free: 7.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.2434, allocations: 0.7359 MB / 420.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.493e-05/0.2435, allocations: 27.38 kB / 420.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2435, allocations: 0 / 420.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of Templates: time 0.004683/0.2482, allocations: 2.867 MB / 423.2 MB, free: 3.891 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches