Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009563/0.0009563, allocations: 168.7 kB / 24.91 MB, free: 9.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9235/0.9235, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.173e-06/1.173e-06, allocations: 0 / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.968e-06/1.114e-05, allocations: 6.25 kB / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002126/0.002137, allocations: 1.927 MB / 275.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.003442, allocations: 1.277 MB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.737e-05/0.00353, allocations: 7.938 kB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002306/0.00376, allocations: 59.72 kB / 276.7 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002576/0.004018, allocations: 147.2 kB / 276.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004052/0.004423, allocations: 219.2 kB / 277.1 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001809/0.004604, allocations: 187.4 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.127e-05/0.004675, allocations: 22.44 kB / 277.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.004783, allocations: 99.72 kB / 277.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.791e-05/0.004861, allocations: 67.8 kB / 277.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.004877, allocations: 12 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.00499, allocations: 79.81 kB / 277.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.568e-05/0.005046, allocations: 47.78 kB / 277.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.176e-05/0.005088, allocations: 47.84 kB / 277.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003353/0.005423, allocations: 191.2 kB / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.162e-06/0.005424, allocations: 0 / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.005425, allocations: 0 / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.715e-06/0.005427, allocations: 0 / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0003869/0.005814, allocations: 441.1 kB / 278.2 MB, free: 12.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.631e-05/0.005841, allocations: 12.03 kB / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.209e-05/0.005873, allocations: 12.92 kB / 278.3 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.006055, allocations: 220.8 kB / 278.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.006069, allocations: 8.375 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.006082, allocations: 4.375 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.006255, allocations: 145.8 kB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.006262, allocations: 7.922 kB / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.006269, allocations: 0 / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.006273, allocations: 4 kB / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.345e-05/0.006306, allocations: 22.75 kB / 278.7 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002168/0.006523, allocations: 211.5 kB / 278.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/0.006625, allocations: 129.3 kB / 279 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.803e-05/0.006653, allocations: 30.62 kB / 279 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.006666, allocations: 11.88 kB / 279 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.235e-05/0.006739, allocations: 70.2 kB / 279.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 9.82e-07/0.00674, allocations: 0 / 279.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001213/0.006861, allocations: 85.59 kB / 279.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.006903, allocations: 114.7 kB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.00705, allocations: 262.6 kB / 279.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.007063, allocations: 25.7 kB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.761e-05/0.007101, allocations: 104.6 kB / 279.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.697e-05/0.007118, allocations: 15.89 kB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.007151, allocations: 33.91 kB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.996e-05/0.007221, allocations: 338.8 kB / 280.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.367e-05/0.007235, allocations: 6.828 kB / 280.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.95e-05/0.007265, allocations: 52.27 kB / 280.1 MB, free: 10.37 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.385e-05/0.007308, allocations: 39.3 kB / 280.2 MB, free: 10.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.00731, allocations: 0 / 280.2 MB, free: 10.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 6.487e-05/0.007375, allocations: 72.44 kB / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.025e-06/0.007383, allocations: 4 kB / 280.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.007387, allocations: 320 / 280.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.007397, allocations: 4.062 kB / 280.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.204e-05/0.00745, allocations: 19.92 kB / 280.3 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.307e-06/0.007453, allocations: 4 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.118e-05/0.007484, allocations: 7.938 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-06/0.007488, allocations: 0 / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 6.434e-05/0.007553, allocations: 125.5 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.9e-05/0.007592, allocations: 57.55 kB / 280.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.541e-05/0.007677, allocations: 79.44 kB / 280.5 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.00768, allocations: 8.062 kB / 280.5 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.007681, allocations: 0 / 280.5 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.007684, allocations: 0 / 280.5 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.583e-05/0.00777, allocations: 113.8 kB / 280.6 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.007771, allocations: 0 / 280.6 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.976e-05/0.0078, allocations: 11.94 kB / 280.7 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.007803, allocations: 7.984 kB / 280.7 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.007811, allocations: 7.938 kB / 280.7 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.007811, allocations: 0 / 280.7 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.007812, allocations: 4 kB / 280.7 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.103e-05/0.007883, allocations: 104.4 kB / 280.8 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.846e-05/0.007922, allocations: 35.84 kB / 280.8 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.007941, allocations: 11.92 kB / 280.8 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.798e-05/0.007969, allocations: 7.938 kB / 280.8 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.834e-05/0.007997, allocations: 7.984 kB / 280.8 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.898e-06/0.008007, allocations: 8 kB / 280.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.708e-05/0.008084, allocations: 93.59 kB / 280.9 MB, free: 9.465 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008084, allocations: 4 kB / 280.9 MB, free: 9.461 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001343/0.008218, allocations: 31.94 kB / 281 MB, free: 9.43 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,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 (10): * Single equations (assignments): 8 * 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.0009754/0.009194, allocations: 0.5123 MB / 281.5 MB, free: 9.145 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.392e-05/0.009278, allocations: 44.77 kB / 281.5 MB, free: 9.098 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.009282, allocations: 4 kB / 281.5 MB, free: 9.094 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.095e-05/0.009313, allocations: 20.84 kB / 281.6 MB, free: 9.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001765/0.009489, allocations: 84.34 kB / 281.6 MB, free: 8.992 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003204/0.009809, allocations: 331.5 kB / 282 MB, free: 8.633 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.196e-05/0.009851, allocations: 88.22 kB / 282 MB, free: 8.527 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.07e-05/0.009892, allocations: 21.48 kB / 282.1 MB, free: 8.508 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.186e-05/0.009974, allocations: 79.36 kB / 282.1 MB, free: 8.43 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.009975, allocations: 0 / 282.1 MB, free: 8.43 MB / 266.7 MB Notification: Performance of Templates: time 0.004455/0.01443, allocations: 3.206 MB / 285.4 MB, free: 5.277 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.58796818414703]