Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009425/0.0009425, allocations: 80.36 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009104/0.0009104, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9057/0.9057, allocations: 177 MB / 204.1 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.445e-05/2.664e-05, allocations: 2.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003624/0.00365, allocations: 1.873 MB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.005857, allocations: 1.225 MB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.006025, allocations: 7.938 kB / 327.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002974/0.006322, allocations: 67.59 kB / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003407/0.006663, allocations: 139.4 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005338/0.007197, allocations: 230.4 kB / 328 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002071/0.007404, allocations: 183.5 kB / 328.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.007508, allocations: 29.72 kB / 328.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.007626, allocations: 103.7 kB / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.902e-05/0.007725, allocations: 71.8 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.007746, allocations: 8 kB / 328.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001317/0.007877, allocations: 75.88 kB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.453e-05/0.007952, allocations: 47.78 kB / 328.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.229e-05/0.008004, allocations: 43.84 kB / 328.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002767/0.008281, allocations: 251.1 kB / 328.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.008284, allocations: 0 / 328.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.008286, allocations: 0 / 328.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.008291, allocations: 0 / 328.8 MB, free: 11.53 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005681/0.008859, allocations: 474.5 kB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.008903, allocations: 11.98 kB / 329.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.247e-05/0.008936, allocations: 42.73 kB / 329.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.533e-05/0.008981, allocations: 24.8 kB / 329.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.009291, allocations: 228.7 kB / 329.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.009305, allocations: 8.312 kB / 329.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.362e-05/0.009319, allocations: 8.375 kB / 329.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002708/0.00959, allocations: 181 kB / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.009598, allocations: 192 / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.00961, allocations: 8.125 kB / 329.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.009615, allocations: 0 / 329.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.639e-05/0.009691, allocations: 43.91 kB / 329.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003891/0.01008, allocations: 333.6 kB / 330.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.01024, allocations: 123.8 kB / 330.3 MB, free: 9.902 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.006e-05/0.01029, allocations: 46.56 kB / 330.3 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.01032, allocations: 3.938 kB / 330.3 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001326/0.01045, allocations: 87.31 kB / 330.4 MB, free: 9.746 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.363e-06/0.01045, allocations: 0 / 330.4 MB, free: 9.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002669/0.01072, allocations: 157.4 kB / 330.6 MB, free: 9.586 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.01078, allocations: 136.5 kB / 330.7 MB, free: 9.422 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002439/0.01102, allocations: 338.1 kB / 331 MB, free: 9.082 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.01104, allocations: 33.7 kB / 331.1 MB, free: 9.043 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.823e-05/0.01111, allocations: 132 kB / 331.2 MB, free: 8.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.01113, allocations: 19.89 kB / 331.2 MB, free: 8.891 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.631e-05/0.01117, allocations: 21.72 kB / 331.3 MB, free: 8.863 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.544e-05/0.01125, allocations: 334.8 kB / 331.6 MB, free: 8.527 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.316e-05/0.01129, allocations: 23.98 kB / 331.6 MB, free: 8.504 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.731e-05/0.01136, allocations: 110.8 kB / 331.7 MB, free: 8.371 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.846e-05/0.01144, allocations: 65.58 kB / 331.8 MB, free: 8.301 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.01144, allocations: 0 / 331.8 MB, free: 8.301 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001211/0.01156, allocations: 109.5 kB / 331.9 MB, free: 8.188 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.01158, allocations: 8 kB / 331.9 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.01159, allocations: 0 / 331.9 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.0116, allocations: 0 / 331.9 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.174e-05/0.01167, allocations: 19.94 kB / 331.9 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.01168, allocations: 160 / 331.9 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.826e-05/0.01171, allocations: 7.984 kB / 331.9 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.533e-06/0.01172, allocations: 0 / 331.9 MB, free: 8.152 MB / 298.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 0.0001052/0.01183, allocations: 154.1 kB / 332.1 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.632e-05/0.01188, allocations: 77.52 kB / 332.1 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001755/0.01206, allocations: 131.5 kB / 332.3 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.01206, allocations: 4 kB / 332.3 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.01206, allocations: 0 / 332.3 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.01207, allocations: 0 / 332.3 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.0122, allocations: 212.5 kB / 332.5 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.0122, allocations: 0 / 332.5 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.185e-05/0.01224, allocations: 19.92 kB / 332.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.01225, allocations: 3.938 kB / 332.5 MB, free: 7.504 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/0.01225, allocations: 3.938 kB / 332.5 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.01226, allocations: 8.062 kB / 332.5 MB, free: 7.492 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.01226, allocations: 0 / 332.5 MB, free: 7.492 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001508/0.01241, allocations: 170.5 kB / 332.7 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.33e-05/0.01246, allocations: 35.84 kB / 332.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.01248, allocations: 7.984 kB / 332.7 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.279e-05/0.01252, allocations: 8 kB / 332.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.938e-05/0.01257, allocations: 7.984 kB / 332.7 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.01258, allocations: 4 kB / 332.7 MB, free: 7.238 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001508/0.01273, allocations: 249.2 kB / 333 MB, free: 6.996 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01273, allocations: 0 / 333 MB, free: 6.996 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001845/0.01292, allocations: 39.94 kB / 333 MB, free: 6.957 MB / 298.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.001034/0.01395, allocations: 1.036 MB / 334.1 MB, free: 6.039 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001553/0.0141, allocations: 67.91 kB / 334.1 MB, free: 5.973 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.01411, allocations: 4 kB / 334.1 MB, free: 5.969 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.991e-05/0.01416, allocations: 35.91 kB / 334.2 MB, free: 5.934 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.01443, allocations: 69.86 kB / 334.2 MB, free: 5.863 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.01615, allocations: 2.191 MB / 336.4 MB, free: 3.559 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.756e-05/0.01623, allocations: 127.9 kB / 336.6 MB, free: 3.414 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.033e-05/0.0163, allocations: 29.62 kB / 336.6 MB, free: 3.387 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.908e-05/0.01638, allocations: 64.47 kB / 336.6 MB, free: 3.324 MB / 298.7 MB Notification: Performance of SimCode: time 4.9e-07/0.01638, allocations: 0 / 336.6 MB, free: 3.324 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.03659, allocations: 6.219 MB / 342.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.685/6.722, allocations: 4.062 kB / 342.9 MB, free: 13.14 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.4315787833184]