Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 112.3 kB / 17.74 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 187 kB / 18.67 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 51.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2313, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003204/0.2345, allocations: 1.901 MB / 403.3 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.2363, allocations: 1.099 MB / 404.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.2365, allocations: 4 kB / 404.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005784/0.2371, allocations: 151.5 kB / 404.6 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002861/0.2373, allocations: 115.5 kB / 404.7 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005469/0.2379, allocations: 209.6 kB / 404.9 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002461/0.2382, allocations: 187.5 kB / 405.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.2383, allocations: 33.66 kB / 405.1 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.2384, allocations: 79.64 kB / 405.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.2386, allocations: 79.61 kB / 405.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.188e-05/0.2386, allocations: 12 kB / 405.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.2388, allocations: 63.91 kB / 405.3 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.916e-05/0.2388, allocations: 47.83 kB / 405.4 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.831e-05/0.2389, allocations: 67.55 kB / 405.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003104/0.2392, allocations: 216.3 kB / 405.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.2393, allocations: 3.984 kB / 405.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2393, allocations: 0 / 405.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.2393, allocations: 0 / 405.6 MB, free: 4.617 MB / 318.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.0007652/0.2401, allocations: 0.5118 MB / 406.2 MB, free: 4.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.2401, allocations: 15.89 kB / 406.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.895e-05/0.2402, allocations: 20.75 kB / 406.2 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.2405, allocations: 282.7 kB / 406.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.2406, allocations: 4.375 kB / 406.5 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.282e-05/0.2406, allocations: 12.12 kB / 406.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003488/0.241, allocations: 174.8 kB / 406.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.241, allocations: 0 / 406.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.415e-05/0.241, allocations: 8 kB / 406.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.241, allocations: 0 / 406.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001126/0.2411, allocations: 35.92 kB / 406.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004892/0.2416, allocations: 379.1 kB / 407.1 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002443/0.2419, allocations: 130.5 kB / 407.2 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.242, allocations: 59.36 kB / 407.3 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.242, allocations: 7.984 kB / 407.3 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001587/0.2422, allocations: 79.33 kB / 407.3 MB, free: 2.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.964e-06/0.2422, allocations: 0 / 407.3 MB, free: 2.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003875/0.2426, allocations: 149.3 kB / 407.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.473e-05/0.2427, allocations: 166.2 kB / 407.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002804/0.243, allocations: 277.2 kB / 407.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.243, allocations: 29.7 kB / 407.9 MB, free: 2.016 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.939e-05/0.2431, allocations: 116.5 kB / 408.1 MB, free: 1.895 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.2431, allocations: 23.78 kB / 408.1 MB, free: 1.871 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.786e-05/0.2432, allocations: 29.72 kB / 408.1 MB, free: 1.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.2433, allocations: 334.8 kB / 408.4 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.322e-05/0.2434, allocations: 23.98 kB / 408.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.2435, allocations: 89.41 kB / 408.5 MB, free: 1.363 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.2437, allocations: 98.22 kB / 408.6 MB, free: 1.246 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.2437, allocations: 0 / 408.6 MB, free: 1.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002371/0.2439, allocations: 125.3 kB / 408.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.2439, allocations: 8 kB / 408.8 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.2439, allocations: 0 / 408.8 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.244, allocations: 4 kB / 408.8 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.124e-05/0.2441, allocations: 20.17 kB / 408.8 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.2441, allocations: 0 / 408.8 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.613e-05/0.2442, allocations: 15.84 kB / 408.8 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.2442, allocations: 11.94 kB / 408.8 MB, free: 1.059 MB / 318.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.0001406/0.2443, allocations: 141.8 kB / 409 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.778e-05/0.2444, allocations: 73.44 kB / 409 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.293e-05/0.2445, allocations: 25.8 kB / 409.1 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2445, allocations: 8 kB / 409.1 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2445, allocations: 0 / 409.1 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.2445, allocations: 7.938 kB / 409.1 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.2447, allocations: 225.5 kB / 409.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2447, allocations: 0 / 409.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.467e-05/0.2448, allocations: 15.94 kB / 409.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2448, allocations: 3.938 kB / 409.3 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.2448, allocations: 4 kB / 409.3 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2448, allocations: 3.984 kB / 409.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2448, allocations: 0 / 409.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002595/0.2451, allocations: 171.5 kB / 409.5 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.455e-05/0.2452, allocations: 112.8 kB / 409.6 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/0.2452, allocations: 8 kB / 409.6 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.135e-05/0.2453, allocations: 0 / 409.6 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.108e-05/0.2453, allocations: 19.86 kB / 409.6 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.817e-05/0.2454, allocations: 7.938 kB / 409.6 MB, free: 136 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002061/0.2456, allocations: 204.5 kB / 409.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2456, allocations: 0 / 409.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002673/0.2459, allocations: 28 kB / 409.9 MB, free: 15.91 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.0009408/0.2468, allocations: 425.8 kB / 410.3 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002397/0.2471, allocations: 87.84 kB / 410.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2471, allocations: 0 / 410.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.66e-05/0.2472, allocations: 31.92 kB / 410.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.2476, allocations: 78.06 kB / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006014/0.2482, allocations: 352.1 kB / 410.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.2485, allocations: 0.7358 MB / 411.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.083e-05/0.2486, allocations: 19.44 kB / 411.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2486, allocations: 0 / 411.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of Templates: time 0.005094/0.2537, allocations: 2.816 MB / 414.4 MB, free: 11.49 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches