Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.001284/0.001284, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001415/0.001415, allocations: 213.6 kB / 23.73 MB, free: 4.16 MB / 14.72 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 1.459/1.459, allocations: 230.5 MB / 257.4 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] 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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 63.91 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3311, allocations: 53.4 MB / 431.1 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.00336/0.3345, allocations: 1.579 MB / 432.7 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.3356, allocations: 0.5182 MB / 433.2 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.233e-05/0.3357, allocations: 7.938 kB / 433.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.197e-05/0.3357, allocations: 7.875 kB / 433.2 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001506/0.3359, allocations: 15.88 kB / 433.2 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003537/0.3362, allocations: 59.81 kB / 433.3 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001234/0.3363, allocations: 47.86 kB / 433.4 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.3365, allocations: 16.16 kB / 433.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.3366, allocations: 31.8 kB / 433.4 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.725e-05/0.3366, allocations: 15.92 kB / 433.4 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.667e-05/0.3367, allocations: 4 kB / 433.4 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.9e-05/0.3367, allocations: 4 kB / 433.4 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.465e-05/0.3368, allocations: 23.91 kB / 433.4 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.538e-05/0.3368, allocations: 23.81 kB / 433.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.337, allocations: 61.36 kB / 433.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.337, allocations: 0 / 433.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.337, allocations: 4 kB / 433.5 MB, free: 4.051 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.337, allocations: 0 / 433.5 MB, free: 4.051 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005079/0.3375, allocations: 309.9 kB / 433.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.3375, allocations: 11.98 kB / 433.8 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.197e-05/0.3376, allocations: 34.73 kB / 433.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.3377, allocations: 24.83 kB / 433.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.338, allocations: 142.3 kB / 434 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.338, allocations: 4.125 kB / 434 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.46e-05/0.338, allocations: 8 kB / 434.1 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003786/0.3384, allocations: 105 kB / 434.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3384, allocations: 4 kB / 434.2 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.3384, allocations: 4 kB / 434.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.473e-06/0.3384, allocations: 3.984 kB / 434.2 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.696e-05/0.3385, allocations: 19.92 kB / 434.2 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003323/0.3388, allocations: 236.8 kB / 434.4 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.503e-05/0.3389, allocations: 45.14 kB / 434.5 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.941e-05/0.339, allocations: 17.78 kB / 434.5 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.339, allocations: 0 / 434.5 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001166/0.3391, allocations: 38.55 kB / 434.5 MB, free: 2.906 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 7.81e-07/0.3391, allocations: 0 / 434.5 MB, free: 2.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002474/0.3394, allocations: 65.58 kB / 434.6 MB, free: 2.836 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.3394, allocations: 89.09 kB / 434.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.3396, allocations: 145.7 kB / 434.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.3396, allocations: 25.7 kB / 434.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3397, allocations: 92.08 kB / 434.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.3398, allocations: 8 kB / 434.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-05/0.3398, allocations: 13.72 kB / 434.9 MB, free: 2.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.34, allocations: 314.8 kB / 435.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.464e-05/0.34, allocations: 16.17 kB / 435.3 MB, free: 2.094 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.134e-05/0.3401, allocations: 21.7 kB / 435.3 MB, free: 2.066 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.637e-05/0.3401, allocations: 25.72 kB / 435.3 MB, free: 2.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3401, allocations: 0 / 435.3 MB, free: 2.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001236/0.3403, allocations: 61.56 kB / 435.4 MB, free: 1.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.3403, allocations: 4 kB / 435.4 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3403, allocations: 4.125 kB / 435.4 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3403, allocations: 4 kB / 435.4 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.603e-05/0.3404, allocations: 4 kB / 435.4 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.941e-05/0.3404, allocations: 3.938 kB / 435.4 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.267e-05/0.3404, allocations: 7.984 kB / 435.4 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-06/0.3404, allocations: 0 / 435.4 MB, free: 1.941 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.684e-05/0.3405, allocations: 113.8 kB / 435.5 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.097e-05/0.3406, allocations: 49.58 kB / 435.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.966e-05/0.3406, allocations: 7.812 kB / 435.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.3406, allocations: 32 / 435.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.3407, allocations: 7.938 kB / 435.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3407, allocations: 0 / 435.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001842/0.3408, allocations: 144.7 kB / 435.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-06/0.3408, allocations: 3.938 kB / 435.7 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.07e-05/0.3409, allocations: 4 kB / 435.7 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3409, allocations: 0 / 435.7 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.3409, allocations: 7.938 kB / 435.7 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3409, allocations: 0 / 435.7 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.3409, allocations: 3.938 kB / 435.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001962/0.3411, allocations: 168.3 kB / 435.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.885e-05/0.3411, allocations: 15.94 kB / 435.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.3412, allocations: 4 kB / 435.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.138e-05/0.3412, allocations: 0 / 435.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.696e-05/0.3412, allocations: 7.938 kB / 435.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-06/0.3413, allocations: 0 / 435.9 MB, free: 1.336 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.968e-05/0.3413, allocations: 114.8 kB / 436 MB, free: 1.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3413, allocations: 0 / 436 MB, free: 1.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002124/0.3416, allocations: 4 kB / 436.1 MB, free: 1.223 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0004839/0.342, allocations: 0.6899 MB / 436.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001273/0.3422, allocations: 23.92 kB / 436.8 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3422, allocations: 0 / 436.8 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.69e-05/0.3422, allocations: 7.984 kB / 436.8 MB, free: 484 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.3425, allocations: 31.14 kB / 436.8 MB, free: 456 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.344, allocations: 1.332 MB / 438.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.972e-05/0.3441, allocations: 79.33 kB / 438.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.178e-05/0.3442, allocations: 0 / 438.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.805e-05/0.3442, allocations: 15.44 kB / 438.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3442, allocations: 0 / 438.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03185/0.3761, allocations: 2.21 MB / 440.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.11, allocations: 3.266 kB / 440.4 MB, free: 12.81 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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: 13.542260640766472]