Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008103/0.0008103, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008072/0.0008072, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9295/0.9295, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.334e-06/2.334e-06, allocations: 0 / 318.4 MB, free: 6.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.877e-05/3.111e-05, allocations: 6.281 kB / 318.4 MB, free: 6.207 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004267/0.004298, allocations: 1.833 MB / 320.3 MB, free: 4.359 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.005966, allocations: 1.087 MB / 321.4 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.006119, allocations: 3.938 kB / 321.4 MB, free: 3.262 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003783/0.006497, allocations: 67.59 kB / 321.4 MB, free: 3.195 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00031/0.006807, allocations: 103.5 kB / 321.5 MB, free: 3.094 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007109/0.007518, allocations: 264.9 kB / 321.8 MB, free: 2.84 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002377/0.007756, allocations: 175.5 kB / 322 MB, free: 2.668 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.00789, allocations: 21.78 kB / 322 MB, free: 2.645 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.008037, allocations: 103.7 kB / 322.1 MB, free: 2.543 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001057/0.008142, allocations: 63.86 kB / 322.1 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.364e-05/0.008166, allocations: 16 kB / 322.2 MB, free: 2.465 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001566/0.008323, allocations: 71.88 kB / 322.2 MB, free: 2.395 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.23e-05/0.008405, allocations: 51.77 kB / 322.3 MB, free: 2.344 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.04e-05/0.008465, allocations: 43.84 kB / 322.3 MB, free: 2.301 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003192/0.008784, allocations: 235.2 kB / 322.5 MB, free: 2.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.008789, allocations: 0 / 322.5 MB, free: 2.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.00879, allocations: 0 / 322.5 MB, free: 2.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.008796, allocations: 0 / 322.5 MB, free: 2.07 MB / 282.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.0006104/0.009407, allocations: 470.6 kB / 323 MB, free: 1.574 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.00945, allocations: 8.922 kB / 323 MB, free: 1.566 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.702e-05/0.009487, allocations: 42.73 kB / 323.1 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.202e-05/0.009539, allocations: 32.75 kB / 323.1 MB, free: 1.484 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003576/0.009897, allocations: 220.8 kB / 323.3 MB, free: 1.238 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.009912, allocations: 4.375 kB / 323.3 MB, free: 1.234 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.493e-05/0.009927, allocations: 8.375 kB / 323.3 MB, free: 1.227 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003129/0.01024, allocations: 176.7 kB / 323.5 MB, free: 1.023 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.01025, allocations: 0 / 323.5 MB, free: 1.023 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.01026, allocations: 4 kB / 323.5 MB, free: 1.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.01027, allocations: 0 / 323.5 MB, free: 1.02 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.526e-05/0.01035, allocations: 43.91 kB / 323.5 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006176/0.01097, allocations: 341.5 kB / 323.9 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001767/0.01115, allocations: 115.9 kB / 324 MB, free: 464 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.655e-05/0.0112, allocations: 46.5 kB / 324 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.01123, allocations: 4 kB / 324 MB, free: 404 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001474/0.01137, allocations: 83.38 kB / 324.1 MB, free: 308 kB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.272e-06/0.01138, allocations: 0 / 324.1 MB, free: 308 kB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002983/0.01167, allocations: 161.4 kB / 324.3 MB, free: 140 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.134e-05/0.01177, allocations: 132.5 kB / 324.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002347/0.012, allocations: 325.9 kB / 324.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.01202, allocations: 33.7 kB / 324.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.277e-05/0.01209, allocations: 128.1 kB / 324.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.01211, allocations: 15.89 kB / 324.9 MB, free: 15.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.923e-05/0.01215, allocations: 33.95 kB / 324.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.636e-05/0.01225, allocations: 334.8 kB / 325.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.914e-05/0.0123, allocations: 27.92 kB / 325.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.526e-05/0.01237, allocations: 106.8 kB / 325.4 MB, free: 14.94 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.638e-05/0.01246, allocations: 69.88 kB / 325.5 MB, free: 14.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.01246, allocations: 0 / 325.5 MB, free: 14.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001399/0.0126, allocations: 105.5 kB / 325.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.01262, allocations: 8 kB / 325.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.01262, allocations: 0 / 325.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.01264, allocations: 4.062 kB / 325.6 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.933e-05/0.01272, allocations: 15.98 kB / 325.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.01273, allocations: 0 / 325.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.572e-05/0.01277, allocations: 11.89 kB / 325.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.01278, allocations: 0 / 325.6 MB, free: 14.71 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.0001047/0.01288, allocations: 155.6 kB / 325.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.046e-05/0.01294, allocations: 69.48 kB / 325.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000191/0.01313, allocations: 123.6 kB / 325.9 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.01314, allocations: 4.062 kB / 325.9 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.01314, allocations: 4 kB / 325.9 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.01315, allocations: 0 / 325.9 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.0133, allocations: 204.6 kB / 326.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.0133, allocations: 0 / 326.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.629e-05/0.01334, allocations: 19.92 kB / 326.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.01335, allocations: 0 / 326.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.01335, allocations: 4 kB / 326.2 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.01336, allocations: 0 / 326.2 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01336, allocations: 0 / 326.2 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001635/0.01352, allocations: 174.5 kB / 326.3 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.873e-05/0.01358, allocations: 47.78 kB / 326.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.0136, allocations: 7.969 kB / 326.4 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.446e-05/0.01364, allocations: 8 kB / 326.4 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.768e-05/0.01368, allocations: 8.047 kB / 326.4 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.0137, allocations: 12 kB / 326.4 MB, free: 13.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000157/0.01386, allocations: 241.2 kB / 326.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01386, allocations: 0 / 326.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001926/0.01405, allocations: 28 kB / 326.7 MB, free: 13.54 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.001075/0.01513, allocations: 1.056 MB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001742/0.0153, allocations: 63.97 kB / 327.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.0153, allocations: 0 / 327.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.244e-05/0.01536, allocations: 31.92 kB / 327.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.01566, allocations: 72.14 kB / 327.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.01759, allocations: 2.156 MB / 330.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001119/0.0177, allocations: 123.9 kB / 330.2 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001197/0.01782, allocations: 25.62 kB / 330.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.788e-05/0.01792, allocations: 64.47 kB / 330.3 MB, free: 9.988 MB / 298.7 MB Notification: Performance of SimCode: time 1.283e-06/0.01792, allocations: 4 kB / 330.3 MB, free: 9.984 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.04045, allocations: 6.113 MB / 336.4 MB, free: 3.941 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.863/6.904, allocations: 7.047 kB / 336.4 MB, free: 3.938 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.700423257425427]