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.001686/0.001686, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.0018/0.0018, allocations: 215.8 kB / 24.53 MB, free: 4.012 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.582/1.582, allocations: 230.5 MB / 258.2 MB, free: 8.016 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 59.91 kB / 378.6 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.406/0.4079, allocations: 53.41 MB / 432 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003364/0.4112, allocations: 1.588 MB / 433.6 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.4125, allocations: 0.5609 MB / 434.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.4127, allocations: 4 kB / 434.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.936e-05/0.4127, allocations: 7.922 kB / 434.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.4129, allocations: 15.88 kB / 434.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.4133, allocations: 63.75 kB / 434.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.4135, allocations: 43.8 kB / 434.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.4136, allocations: 20.16 kB / 434.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001782/0.4138, allocations: 23.92 kB / 434.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.166e-05/0.4139, allocations: 19.86 kB / 434.3 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.4139, allocations: 8 kB / 434.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.106e-05/0.414, allocations: 8 kB / 434.3 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.223e-05/0.4141, allocations: 19.91 kB / 434.3 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.477e-05/0.4141, allocations: 27.81 kB / 434.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002353/0.4144, allocations: 64.03 kB / 434.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4144, allocations: 0 / 434.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4144, allocations: 0 / 434.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.4144, allocations: 0 / 434.4 MB, free: 4.219 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.0006882/0.4151, allocations: 305.9 kB / 434.7 MB, free: 3.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.4151, allocations: 8.031 kB / 434.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.788e-05/0.4152, allocations: 12.12 kB / 434.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.162e-05/0.4152, allocations: 38.73 kB / 434.8 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.4154, allocations: 20.89 kB / 434.8 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003028/0.4157, allocations: 142.3 kB / 434.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.4157, allocations: 3.938 kB / 435 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.4157, allocations: 8 kB / 435 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.416, allocations: 109 kB / 435.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.416, allocations: 3.938 kB / 435.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.416, allocations: 0 / 435.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.416, allocations: 0 / 435.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.012e-05/0.4161, allocations: 19.98 kB / 435.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003857/0.4165, allocations: 236.8 kB / 435.3 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.4166, allocations: 41.16 kB / 435.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.469e-05/0.4167, allocations: 21.77 kB / 435.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.4167, allocations: 0 / 435.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/0.4167, allocations: 38.56 kB / 435.4 MB, free: 3.074 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 7.02e-07/0.4167, allocations: 0 / 435.4 MB, free: 3.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002754/0.417, allocations: 69.56 kB / 435.5 MB, free: 3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.232e-05/0.4171, allocations: 85.05 kB / 435.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.4173, allocations: 145.7 kB / 435.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.4173, allocations: 33.95 kB / 435.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.473e-05/0.4173, allocations: 92.08 kB / 435.8 MB, free: 2.613 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.4174, allocations: 3.953 kB / 435.8 MB, free: 2.609 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.052e-05/0.4174, allocations: 17.7 kB / 435.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.4176, allocations: 318.8 kB / 436.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.133e-05/0.4176, allocations: 4 kB / 436.2 MB, free: 2.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.418e-05/0.4176, allocations: 21.7 kB / 436.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.876e-05/0.4177, allocations: 29.77 kB / 436.2 MB, free: 2.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.4177, allocations: 0 / 436.2 MB, free: 2.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000134/0.4179, allocations: 61.56 kB / 436.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.4179, allocations: 8 kB / 436.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.4179, allocations: 0 / 436.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.4179, allocations: 64 / 436.3 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.2e-05/0.418, allocations: 11.98 kB / 436.3 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.418, allocations: 3.938 kB / 436.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.604e-05/0.418, allocations: 4 kB / 436.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.418, allocations: 4 kB / 436.3 MB, free: 2.102 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 0.0001057/0.4181, allocations: 117.8 kB / 436.4 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.817e-05/0.4182, allocations: 41.66 kB / 436.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.34e-05/0.4182, allocations: 7.812 kB / 436.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.4182, allocations: 3.984 kB / 436.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4182, allocations: 7.969 kB / 436.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.4182, allocations: 7.938 kB / 436.5 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.4184, allocations: 136.7 kB / 436.6 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4184, allocations: 0 / 436.6 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.536e-05/0.4185, allocations: 4 kB / 436.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.4185, allocations: 8 kB / 436.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.195e-06/0.4185, allocations: 0 / 436.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.4185, allocations: 0 / 436.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.4185, allocations: 3.938 kB / 436.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002109/0.4187, allocations: 168.3 kB / 436.8 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.914e-05/0.4188, allocations: 15.94 kB / 436.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.4188, allocations: 4 kB / 436.8 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.578e-05/0.4188, allocations: 0 / 436.8 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.192e-05/0.4189, allocations: 3.938 kB / 436.8 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.4189, allocations: 4 kB / 436.8 MB, free: 1.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000106/0.419, allocations: 114.3 kB / 436.9 MB, free: 1.391 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.419, allocations: 3.938 kB / 437 MB, free: 1.387 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002268/0.4192, allocations: 8 kB / 437 MB, free: 1.379 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.0005629/0.4198, allocations: 0.6898 MB / 437.7 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001571/0.4199, allocations: 23.92 kB / 437.7 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4199, allocations: 0 / 437.7 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.332e-05/0.42, allocations: 15.98 kB / 437.7 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.4204, allocations: 29.14 kB / 437.7 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.4219, allocations: 1.335 MB / 439.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.4223, allocations: 0.6885 MB / 439.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.892e-05/0.4223, allocations: 0 / 439.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.621e-05/0.4224, allocations: 15.44 kB / 439.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4224, allocations: 4.031 kB / 439.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/0.4469, allocations: 1.773 MB / 441.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.63, allocations: 7.344 kB / 441.5 MB, free: 12.79 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.416058297036216]