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.0008782/0.0008782, 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.001334/0.001334, 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.8956/0.8956, allocations: 177 MB / 204.1 MB, free: 5.75 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.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 1.733e-06/1.733e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.206e-05/2.38e-05, allocations: 6.281 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002217/0.002241, allocations: 1.576 MB / 326.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007621/0.003003, allocations: 0.5258 MB / 326.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.811e-05/0.003091, allocations: 11.94 kB / 326.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.391e-05/0.003135, allocations: 7.922 kB / 326.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.003281, allocations: 7.875 kB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.003603, allocations: 59.73 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.003707, allocations: 47.8 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.612e-05/0.003803, allocations: 12.17 kB / 326.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.003931, allocations: 43.83 kB / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.008e-05/0.003982, allocations: 19.86 kB / 326.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.781e-05/0.003999, allocations: 4 kB / 326.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.817e-05/0.004038, allocations: 8 kB / 326.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.379e-05/0.004081, allocations: 15.94 kB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.198e-05/0.004103, allocations: 15.97 kB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001476/0.004251, allocations: 63.73 kB / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.004253, allocations: 0 / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.004254, allocations: 0 / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.309e-06/0.004259, allocations: 0 / 326.9 MB, free: 13.48 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.0003814/0.00464, allocations: 302 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.004681, allocations: 11.98 kB / 327.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.088e-05/0.004712, allocations: 38.73 kB / 327.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.004829, allocations: 20.89 kB / 327.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.00504, allocations: 142.2 kB / 327.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-06/0.00505, allocations: 8.312 kB / 327.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.067e-06/0.005059, allocations: 384 / 327.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.0053, allocations: 109.2 kB / 327.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.005307, allocations: 0 / 327.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.005317, allocations: 4 kB / 327.5 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.005322, allocations: 7.938 kB / 327.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.432e-05/0.005366, allocations: 15.98 kB / 327.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002841/0.005651, allocations: 232.8 kB / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.442e-05/0.005715, allocations: 45.2 kB / 327.8 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.917e-05/0.005744, allocations: 13.78 kB / 327.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.005764, allocations: 0 / 327.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.005787, allocations: 46.42 kB / 327.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.193e-06/0.005789, allocations: 0 / 327.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001826/0.005971, allocations: 69.64 kB / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.006021, allocations: 85.03 kB / 328 MB, free: 12.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.00613, allocations: 144.8 kB / 328.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.437e-06/0.006139, allocations: 25.7 kB / 328.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.658e-05/0.006186, allocations: 100.1 kB / 328.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.257e-05/0.006199, allocations: 0 / 328.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.677e-05/0.006225, allocations: 9.719 kB / 328.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.537e-05/0.006311, allocations: 322.8 kB / 328.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.462e-05/0.006335, allocations: 12.23 kB / 328.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.66e-05/0.006352, allocations: 8 kB / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.29e-05/0.006395, allocations: 20.84 kB / 328.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.006397, allocations: 4 kB / 328.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.743e-05/0.006464, allocations: 53.58 kB / 328.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.006477, allocations: 7.281 kB / 328.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.006481, allocations: 0 / 328.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.006493, allocations: 3.984 kB / 328.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.178e-05/0.006545, allocations: 8.094 kB / 328.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.00655, allocations: 0 / 328.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.73e-05/0.006567, allocations: 4 kB / 328.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.006574, allocations: 3.984 kB / 328.8 MB, free: 11.42 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 6.153e-05/0.006636, allocations: 117.8 kB / 328.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.806e-05/0.006674, allocations: 41.66 kB / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.404e-05/0.006698, allocations: 7.812 kB / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.006701, allocations: 3.984 kB / 328.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.006705, allocations: 0 / 328.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.006708, allocations: 4.031 kB / 328.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.006819, allocations: 140.7 kB / 329.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.00682, allocations: 0 / 329.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.498e-05/0.006845, allocations: 15.86 kB / 329.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.006847, allocations: 0 / 329.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.201e-06/0.006853, allocations: 4 kB / 329.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.006854, allocations: 0 / 329.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.006855, allocations: 0 / 329.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001097/0.006965, allocations: 160.3 kB / 329.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.049e-05/0.006995, allocations: 15.92 kB / 329.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.066e-05/0.007006, allocations: 8.031 kB / 329.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.331e-05/0.007039, allocations: 3.984 kB / 329.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.786e-05/0.007067, allocations: 8 kB / 329.3 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-06/0.00707, allocations: 0 / 329.3 MB, free: 10.83 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.442e-05/0.007125, allocations: 115.2 kB / 329.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007125, allocations: 3.938 kB / 329.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001471/0.007272, allocations: 7.938 kB / 329.4 MB, free: 10.7 MB / 298.7 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.0003108/0.007583, allocations: 0.6938 MB / 330.1 MB, free: 9.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.819e-05/0.007671, allocations: 19.92 kB / 330.1 MB, free: 9.961 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.007673, allocations: 0 / 330.1 MB, free: 9.961 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.901e-05/0.007692, allocations: 8 kB / 330.1 MB, free: 9.953 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.007964, allocations: 27.89 kB / 330.1 MB, free: 9.926 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008775/0.008841, allocations: 1.305 MB / 331.5 MB, free: 8.531 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.627e-05/0.008917, allocations: 79.02 kB / 331.5 MB, free: 8.434 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.6e-05/0.008953, allocations: 4 kB / 331.5 MB, free: 8.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.728e-05/0.009001, allocations: 20.5 kB / 331.6 MB, free: 8.41 MB / 298.7 MB Notification: Performance of SimCode: time 6.82e-07/0.009001, allocations: 0 / 331.6 MB, free: 8.41 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01983/0.02883, allocations: 2.315 MB / 333.9 MB, free: 6.191 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.667/6.696, allocations: 5.859 kB / 333.9 MB, free: 6.188 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/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: 8.34524825308472]