Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 107.1 kB / 20.44 MB, free: 1.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 205.3 kB / 23.72 MB, free: 4.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.407/1.407, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 47.92 kB / 377.7 MB, free: 3.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2342, allocations: 53.37 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002779/0.237, allocations: 1.577 MB / 432.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009348/0.2379, allocations: 0.5181 MB / 433.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.418e-05/0.238, allocations: 7.938 kB / 433.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.235e-05/0.238, allocations: 3.938 kB / 433.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001239/0.2381, allocations: 15.88 kB / 433.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003158/0.2385, allocations: 59.81 kB / 433.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.2386, allocations: 51.78 kB / 433.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.357e-05/0.2387, allocations: 16.17 kB / 433.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.2388, allocations: 27.86 kB / 433.4 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.8e-05/0.2388, allocations: 19.86 kB / 433.4 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/0.2389, allocations: 4 kB / 433.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.977e-05/0.2389, allocations: 7.984 kB / 433.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.81e-05/0.2389, allocations: 15.92 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.028e-05/0.239, allocations: 19.88 kB / 433.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.2391, allocations: 59.11 kB / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2391, allocations: 0 / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2391, allocations: 4 kB / 433.5 MB, free: 4.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.2391, allocations: 0 / 433.5 MB, free: 4.234 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.0004583/0.2396, allocations: 310.9 kB / 433.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2396, allocations: 12.03 kB / 433.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.224e-05/0.2396, allocations: 34.73 kB / 433.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.2398, allocations: 16.89 kB / 433.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002385/0.24, allocations: 148.9 kB / 434 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.24, allocations: 4.125 kB / 434 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.258e-05/0.2401, allocations: 12 kB / 434 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002457/0.2403, allocations: 101 kB / 434.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.2403, allocations: 0 / 434.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.2403, allocations: 4 kB / 434.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2403, allocations: 0 / 434.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.567e-05/0.2404, allocations: 19.92 kB / 434.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002974/0.2407, allocations: 232.8 kB / 434.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.876e-05/0.2408, allocations: 45.14 kB / 434.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.856e-05/0.2408, allocations: 21.78 kB / 434.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.2408, allocations: 3.984 kB / 434.4 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.2409, allocations: 34.56 kB / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.2409, allocations: 0 / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002259/0.2411, allocations: 61.58 kB / 434.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.2412, allocations: 89.34 kB / 434.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.2413, allocations: 149.7 kB / 434.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.2413, allocations: 25.7 kB / 434.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.44e-05/0.2414, allocations: 88.12 kB / 434.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.2414, allocations: 11.95 kB / 434.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.2414, allocations: 13.66 kB / 434.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.2416, allocations: 322.8 kB / 435.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.978e-05/0.2416, allocations: 7.938 kB / 435.2 MB, free: 2.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.279e-05/0.2416, allocations: 21.7 kB / 435.2 MB, free: 2.258 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.118e-05/0.2417, allocations: 33.77 kB / 435.3 MB, free: 2.219 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2417, allocations: 4 kB / 435.3 MB, free: 2.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001192/0.2418, allocations: 57.58 kB / 435.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.2419, allocations: 4 kB / 435.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.2419, allocations: 0 / 435.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.2419, allocations: 4 kB / 435.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.998e-05/0.2419, allocations: 7.938 kB / 435.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.2419, allocations: 7.922 kB / 435.3 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.215e-05/0.242, allocations: 4.062 kB / 435.4 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-06/0.242, allocations: 4 kB / 435.4 MB, free: 2.121 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.427e-05/0.2421, allocations: 113.8 kB / 435.5 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.006e-05/0.2421, allocations: 49.58 kB / 435.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.772e-05/0.2422, allocations: 7.812 kB / 435.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2422, allocations: 0 / 435.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.2422, allocations: 3.938 kB / 435.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.2422, allocations: 0 / 435.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.2424, allocations: 140.7 kB / 435.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2424, allocations: 0 / 435.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.245e-05/0.2424, allocations: 8.031 kB / 435.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.2424, allocations: 0 / 435.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.2424, allocations: 0 / 435.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2424, allocations: 4 kB / 435.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.2424, allocations: 11.91 kB / 435.7 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001788/0.2426, allocations: 160.3 kB / 435.8 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.873e-05/0.2426, allocations: 15.94 kB / 435.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.2426, allocations: 4 kB / 435.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.338e-05/0.2427, allocations: 0 / 435.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.756e-05/0.2427, allocations: 7.969 kB / 435.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.2427, allocations: 4 kB / 435.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.109e-05/0.2428, allocations: 110.8 kB / 436 MB, free: 1.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2428, allocations: 0 / 436 MB, free: 1.418 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002185/0.243, allocations: 8 kB / 436 MB, free: 1.41 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.0004553/0.2435, allocations: 0.686 MB / 436.7 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001226/0.2436, allocations: 28.02 kB / 436.7 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2436, allocations: 0 / 436.7 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.82e-05/0.2437, allocations: 7.984 kB / 436.7 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.244, allocations: 33.89 kB / 436.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.2454, allocations: 1.334 MB / 438.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.594e-05/0.2455, allocations: 83.58 kB / 438.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.972e-05/0.2455, allocations: 0 / 438.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.762e-05/0.2456, allocations: 15.44 kB / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2456, allocations: 3.938 kB / 438.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02881/0.2744, allocations: 2.193 MB / 440.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11, allocations: 7.938 kB / 440.4 MB, free: 13.02 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.33548844512552]