Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 191.7 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 47.91 kB / 370.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2341, allocations: 52.18 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002708/0.2368, allocations: 1.568 MB / 424.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007678/0.2375, allocations: 458.8 kB / 424.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.377e-05/0.2376, allocations: 0 / 424.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.211e-05/0.2377, allocations: 7.875 kB / 424.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.2378, allocations: 23.86 kB / 424.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002263/0.238, allocations: 43.83 kB / 424.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.2381, allocations: 47.86 kB / 424.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.415e-05/0.2382, allocations: 8.172 kB / 424.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.04e-05/0.2383, allocations: 31.84 kB / 424.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.963e-05/0.2383, allocations: 19.86 kB / 424.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.722e-05/0.2383, allocations: 4 kB / 424.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.012e-05/0.2383, allocations: 0 / 424.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.068e-05/0.2384, allocations: 11.94 kB / 424.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.364e-05/0.2384, allocations: 23.86 kB / 424.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.2385, allocations: 61.38 kB / 424.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2385, allocations: 0 / 424.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2385, allocations: 0 / 424.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.567e-06/0.2385, allocations: 0 / 424.9 MB, free: 12.11 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.0004315/0.239, allocations: 313.9 kB / 425.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.239, allocations: 8.031 kB / 425.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.342e-05/0.239, allocations: 30.75 kB / 425.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.402e-05/0.2391, allocations: 8.891 kB / 425.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.2393, allocations: 146.3 kB / 425.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.2393, allocations: 8.375 kB / 425.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.2393, allocations: 12.31 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002441/0.2395, allocations: 108.9 kB / 425.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.2395, allocations: 0 / 425.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.051e-06/0.2395, allocations: 0 / 425.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.2396, allocations: 0 / 425.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.365e-05/0.2396, allocations: 19.98 kB / 425.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002899/0.2399, allocations: 232.8 kB / 425.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.64e-05/0.24, allocations: 41.22 kB / 425.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.108e-05/0.2401, allocations: 25.7 kB / 425.8 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.2401, allocations: 4 kB / 425.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.2401, allocations: 30.56 kB / 425.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.2401, allocations: 0 / 425.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002184/0.2403, allocations: 73.55 kB / 425.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.2404, allocations: 81.36 kB / 426 MB, free: 10.81 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.2405, allocations: 148.4 kB / 426.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.2405, allocations: 25.7 kB / 426.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.435e-05/0.2406, allocations: 84.14 kB / 426.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.329e-05/0.2406, allocations: 11.94 kB / 426.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.348e-05/0.2406, allocations: 17.67 kB / 426.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.2407, allocations: 322.8 kB / 426.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.657e-05/0.2408, allocations: 4 kB / 426.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.104e-05/0.2408, allocations: 21.7 kB / 426.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.736e-05/0.2409, allocations: 41.64 kB / 426.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2409, allocations: 0 / 426.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001203/0.241, allocations: 53.62 kB / 426.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.241, allocations: 4 kB / 426.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.241, allocations: 0 / 426.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.2411, allocations: 4 kB / 426.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.755e-05/0.2411, allocations: 11.98 kB / 426.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.2411, allocations: 3.984 kB / 426.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.384e-05/0.2412, allocations: 8.016 kB / 426.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.2412, allocations: 4 kB / 426.7 MB, free: 10.01 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.675e-05/0.2413, allocations: 121.8 kB / 426.8 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.237e-05/0.2413, allocations: 33.7 kB / 426.9 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.642e-05/0.2414, allocations: 11.81 kB / 426.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.2414, allocations: 0 / 426.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.2414, allocations: 0 / 426.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.2414, allocations: 0 / 426.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001649/0.2415, allocations: 148.6 kB / 427 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.2415, allocations: 0 / 427 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.025e-05/0.2416, allocations: 11.97 kB / 427 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.2416, allocations: 0 / 427 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.2416, allocations: 7.922 kB / 427 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.2416, allocations: 4 kB / 427.1 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2416, allocations: 0 / 427.1 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.2418, allocations: 160.3 kB / 427.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.195e-05/0.2418, allocations: 7.984 kB / 427.2 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.2418, allocations: 0 / 427.2 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.116e-05/0.2419, allocations: 4 kB / 427.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.803e-05/0.2419, allocations: 12.02 kB / 427.2 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.2419, allocations: 4 kB / 427.2 MB, free: 9.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.251e-05/0.242, allocations: 107.2 kB / 427.3 MB, free: 9.309 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.242, allocations: 3.938 kB / 427.3 MB, free: 9.305 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002062/0.2422, allocations: 4 kB / 427.3 MB, free: 9.301 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.0005084/0.2427, allocations: 0.6898 MB / 428 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001219/0.2428, allocations: 32.02 kB / 428.1 MB, free: 8.551 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.2428, allocations: 0 / 428.1 MB, free: 8.551 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.468e-05/0.2428, allocations: 7.984 kB / 428.1 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.2431, allocations: 23.39 kB / 428.1 MB, free: 8.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.2445, allocations: 1.323 MB / 429.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.599e-05/0.2446, allocations: 75.45 kB / 429.5 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.958e-05/0.2446, allocations: 3.984 kB / 429.5 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.718e-05/0.2447, allocations: 15.44 kB / 429.5 MB, free: 6.996 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2447, allocations: 0 / 429.5 MB, free: 6.996 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02889/0.2736, allocations: 2.174 MB / 431.7 MB, free: 4.965 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.7, allocations: 7.984 kB / 431.7 MB, free: 4.957 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 12.974293953739107]