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.001314/0.001314, allocations: 114 kB / 20.43 MB, free: 1.457 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.001472/0.001472, allocations: 214.2 kB / 23.74 MB, free: 4.672 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.455/1.455, allocations: 230.5 MB / 257.4 MB, free: 7.992 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.00192/0.00192, allocations: 60.14 kB / 377.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2505, allocations: 53.4 MB / 431.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002847/0.2534, allocations: 1.596 MB / 432.8 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.2544, allocations: 0.5648 MB / 433.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.647e-05/0.2545, allocations: 7.938 kB / 433.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.378e-05/0.2545, allocations: 3.938 kB / 433.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.2546, allocations: 15.86 kB / 433.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002812/0.2549, allocations: 59.81 kB / 433.4 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.255, allocations: 51.8 kB / 433.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.415e-05/0.2551, allocations: 12.17 kB / 433.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.2552, allocations: 31.84 kB / 433.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.087e-05/0.2553, allocations: 23.86 kB / 433.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.2553, allocations: 4 kB / 433.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.609e-05/0.2553, allocations: 4 kB / 433.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.858e-05/0.2554, allocations: 15.92 kB / 433.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.415e-05/0.2554, allocations: 27.8 kB / 433.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.2556, allocations: 67.39 kB / 433.6 MB, free: 4.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2556, allocations: 4 kB / 433.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2556, allocations: 0 / 433.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.2556, allocations: 0 / 433.6 MB, free: 4.348 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.0004415/0.256, allocations: 310.8 kB / 433.9 MB, free: 4.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.256, allocations: 8.031 kB / 434 MB, free: 4.008 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.14e-05/0.2561, allocations: 42.73 kB / 434 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001306/0.2562, allocations: 12.89 kB / 434 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.2564, allocations: 146.5 kB / 434.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.2565, allocations: 8.125 kB / 434.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.694e-06/0.2565, allocations: 0 / 434.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.2567, allocations: 101 kB / 434.3 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2567, allocations: 4 kB / 434.3 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.138e-06/0.2567, allocations: 8 kB / 434.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.2567, allocations: 0 / 434.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.996e-05/0.2568, allocations: 15.92 kB / 434.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002983/0.2571, allocations: 240.8 kB / 434.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.622e-05/0.2572, allocations: 45.16 kB / 434.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.483e-05/0.2573, allocations: 21.77 kB / 434.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.2573, allocations: 4 kB / 434.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.2573, allocations: 30.56 kB / 434.6 MB, free: 3.215 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.2573, allocations: 0 / 434.6 MB, free: 3.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002229/0.2575, allocations: 69.78 kB / 434.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.2576, allocations: 81.14 kB / 434.8 MB, free: 3.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.2577, allocations: 153.7 kB / 434.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.2577, allocations: 25.7 kB / 434.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.866e-05/0.2578, allocations: 92.08 kB / 435 MB, free: 2.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.265e-05/0.2578, allocations: 3.953 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-05/0.2578, allocations: 25.64 kB / 435.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.258, allocations: 310.8 kB / 435.4 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.849e-05/0.258, allocations: 12 kB / 435.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.268e-05/0.2581, allocations: 25.64 kB / 435.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.198e-05/0.2581, allocations: 25.7 kB / 435.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.2581, allocations: 4 kB / 435.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000124/0.2583, allocations: 65.62 kB / 435.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.2583, allocations: 6.5 kB / 435.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.2583, allocations: 0 / 435.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.2583, allocations: 3.984 kB / 435.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.992e-05/0.2584, allocations: 8 kB / 435.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.2584, allocations: 7.938 kB / 435.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.216e-05/0.2584, allocations: 0 / 435.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.2584, allocations: 4 kB / 435.5 MB, free: 2.234 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 8.728e-05/0.2585, allocations: 121.9 kB / 435.6 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.65e-05/0.2586, allocations: 41.59 kB / 435.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.024e-05/0.2586, allocations: 11.8 kB / 435.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2586, allocations: 4 kB / 435.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.2586, allocations: 3.938 kB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.2586, allocations: 0 / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000174/0.2588, allocations: 140.7 kB / 435.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.2588, allocations: 0 / 435.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.145e-05/0.2588, allocations: 4 kB / 435.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2588, allocations: 0 / 435.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.2588, allocations: 4.031 kB / 435.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.2588, allocations: 4 kB / 435.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2588, allocations: 3.938 kB / 435.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001658/0.259, allocations: 160.3 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.791e-05/0.259, allocations: 15.94 kB / 436 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.2591, allocations: 0 / 436 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.691e-05/0.2591, allocations: 12.03 kB / 436 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.363e-05/0.2591, allocations: 3.938 kB / 436 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.2591, allocations: 0 / 436 MB, free: 1.637 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.699e-05/0.2592, allocations: 114.2 kB / 436.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2592, allocations: 0 / 436.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002531/0.2595, allocations: 4 kB / 436.2 MB, free: 1.523 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.0004994/0.26, allocations: 0.6898 MB / 436.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001214/0.2601, allocations: 27.92 kB / 436.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2601, allocations: 3.938 kB / 436.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.455e-05/0.2601, allocations: 7.984 kB / 436.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.2605, allocations: 30.92 kB / 436.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.2618, allocations: 1.334 MB / 438.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.2621, allocations: 0.6924 MB / 438.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.897e-05/0.2621, allocations: 0 / 438.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.668e-05/0.2622, allocations: 19.44 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2622, allocations: 0 / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02947/0.2916, allocations: 1.741 MB / 440.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.02, allocations: 8.625 kB / 440.7 MB, free: 12.94 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.4270491739735]