Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.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.0008741/0.0008741, allocations: 80.34 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.0007818/0.0007818, allocations: 156.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.8766/0.8766, allocations: 177 MB / 204.1 MB, free: 5.742 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.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.444e-06/2.444e-06, allocations: 0 / 324.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.169e-05/2.414e-05, allocations: 2.281 kB / 324.5 MB, free: 15.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.003278/0.003302, allocations: 1.603 MB / 326.1 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007421/0.004044, allocations: 0.5141 MB / 326.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.024e-05/0.004134, allocations: 7.938 kB / 326.7 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.952e-05/0.004184, allocations: 3.938 kB / 326.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.004329, allocations: 11.86 kB / 326.7 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002997/0.004629, allocations: 63.12 kB / 326.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.969e-05/0.004729, allocations: 55.78 kB / 326.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.137e-05/0.00482, allocations: 12.17 kB / 326.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.004949, allocations: 39.84 kB / 326.8 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.541e-05/0.004995, allocations: 11.92 kB / 326.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.357e-05/0.005018, allocations: 4 kB / 326.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.731e-05/0.005055, allocations: 4 kB / 326.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.297e-05/0.005098, allocations: 15.92 kB / 326.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.442e-05/0.005123, allocations: 23.86 kB / 326.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.005256, allocations: 55.8 kB / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.005259, allocations: 4 kB / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.005261, allocations: 4 kB / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.005267, allocations: 3.984 kB / 327 MB, free: 13.29 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003774/0.005644, allocations: 298 kB / 327.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.005684, allocations: 15.98 kB / 327.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.231e-05/0.005717, allocations: 34.75 kB / 327.3 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.005824, allocations: 20.88 kB / 327.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.006048, allocations: 146.1 kB / 327.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.726e-06/0.006057, allocations: 4.375 kB / 327.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/0.006066, allocations: 12.31 kB / 327.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002273/0.006294, allocations: 122 kB / 327.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.852e-06/0.006301, allocations: 0 / 327.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.006309, allocations: 4 kB / 327.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.006313, allocations: 0 / 327.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.447e-05/0.006358, allocations: 19.98 kB / 327.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002513/0.006609, allocations: 249.6 kB / 327.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.575e-05/0.006685, allocations: 67.8 kB / 327.9 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.827e-05/0.006723, allocations: 30.62 kB / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.006742, allocations: 0 / 328 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/0.00676, allocations: 38.56 kB / 328 MB, free: 12.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.006761, allocations: 0 / 328 MB, free: 12.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001864/0.006947, allocations: 89.83 kB / 328.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.006995, allocations: 110.8 kB / 328.2 MB, free: 11.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.754e-05/0.007093, allocations: 148.8 kB / 328.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.627e-06/0.007101, allocations: 25.7 kB / 328.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.798e-05/0.007139, allocations: 88.12 kB / 328.5 MB, free: 11.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.106e-05/0.00715, allocations: 0 / 328.5 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.007178, allocations: 21.67 kB / 328.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.726e-05/0.007255, allocations: 322.8 kB / 328.8 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.473e-05/0.00728, allocations: 12 kB / 328.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.622e-05/0.007296, allocations: 7.984 kB / 328.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.871e-05/0.007335, allocations: 24.86 kB / 328.8 MB, free: 11.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.007336, allocations: 0 / 328.8 MB, free: 11.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.121e-05/0.007398, allocations: 49.67 kB / 328.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.007409, allocations: 4 kB / 328.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.007414, allocations: 0 / 328.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.007425, allocations: 0 / 328.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.916e-05/0.007475, allocations: 4 kB / 328.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.007479, allocations: 0 / 328.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.511e-05/0.007494, allocations: 4.031 kB / 328.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.007501, allocations: 11.97 kB / 328.9 MB, free: 11.1 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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 5.918e-05/0.007561, allocations: 117.8 kB / 329 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.779e-05/0.007608, allocations: 53.58 kB / 329.1 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.656e-05/0.007635, allocations: 15.91 kB / 329.1 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.007639, allocations: 4 kB / 329.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.007642, allocations: 0 / 329.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.007645, allocations: 0 / 329.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.007752, allocations: 144.7 kB / 329.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.007753, allocations: 64 / 329.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.093e-05/0.007784, allocations: 12 kB / 329.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.007787, allocations: 3.984 kB / 329.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.007794, allocations: 7.938 kB / 329.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.007795, allocations: 0 / 329.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.007796, allocations: 0 / 329.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.00791, allocations: 189 kB / 329.4 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.023e-05/0.00794, allocations: 15.94 kB / 329.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.007952, allocations: 4 kB / 329.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.26e-05/0.007985, allocations: 0 / 329.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.398e-05/0.008009, allocations: 8 kB / 329.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.008013, allocations: 4 kB / 329.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.005e-05/0.008063, allocations: 115.2 kB / 329.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008063, allocations: 0 / 329.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001399/0.008203, allocations: 4 kB / 329.6 MB, free: 10.33 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0002707/0.008474, allocations: 0.7141 MB / 330.3 MB, free: 9.586 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.513e-05/0.008559, allocations: 19.98 kB / 330.3 MB, free: 9.566 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.00856, allocations: 8 kB / 330.3 MB, free: 9.559 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.811e-05/0.008578, allocations: 8 kB / 330.3 MB, free: 9.551 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.008879, allocations: 27.95 kB / 330.4 MB, free: 9.523 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008318/0.009711, allocations: 1.319 MB / 331.7 MB, free: 8.109 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.192e-05/0.009783, allocations: 95.28 kB / 331.8 MB, free: 7.996 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.364e-05/0.009817, allocations: 4 kB / 331.8 MB, free: 7.992 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.891e-05/0.009855, allocations: 12.5 kB / 331.8 MB, free: 7.98 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.009856, allocations: 0 / 331.8 MB, free: 7.98 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01456/0.02442, allocations: 2.429 MB / 334.2 MB, free: 5.656 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.763/6.787, allocations: 11.86 kB / 334.2 MB, free: 5.645 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.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.400608039461076]