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.00148/0.00148, allocations: 112.5 kB / 21.22 MB, free: 0.7305 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.001603/0.001603, allocations: 212.2 kB / 24.52 MB, free: 4.074 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.361/1.361, allocations: 230.6 MB / 258.3 MB, free: 7.996 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 51.92 kB / 378.6 MB, free: 3.238 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2364, allocations: 53.37 MB / 431.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003249/0.2397, allocations: 1.582 MB / 433.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.2408, allocations: 0.5609 MB / 434.1 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.2409, allocations: 3.938 kB / 434.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.461e-05/0.241, allocations: 3.938 kB / 434.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001525/0.2411, allocations: 15.88 kB / 434.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003882/0.2415, allocations: 59.81 kB / 434.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00015/0.2417, allocations: 51.78 kB / 434.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.2418, allocations: 16.17 kB / 434.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001486/0.2419, allocations: 31.86 kB / 434.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.392e-05/0.242, allocations: 27.84 kB / 434.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.242, allocations: 0 / 434.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.277e-05/0.2421, allocations: 8 kB / 434.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.89e-05/0.2421, allocations: 15.92 kB / 434.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.126e-05/0.2422, allocations: 23.81 kB / 434.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.2424, allocations: 64.45 kB / 434.4 MB, free: 4.426 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.2424, allocations: 4 kB / 434.4 MB, free: 4.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2424, allocations: 0 / 434.4 MB, free: 4.422 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.2424, allocations: 4 kB / 434.4 MB, free: 4.418 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.0004919/0.2429, allocations: 309.9 kB / 434.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.2429, allocations: 8.031 kB / 434.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.173e-05/0.2429, allocations: 192 / 434.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.423e-05/0.243, allocations: 42.67 kB / 434.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.2431, allocations: 16.89 kB / 434.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.2434, allocations: 146.9 kB / 434.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.2434, allocations: 7.938 kB / 434.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.2434, allocations: 4 kB / 434.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002871/0.2437, allocations: 105 kB / 435 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.2437, allocations: 0 / 435 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.2437, allocations: 0 / 435 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.2437, allocations: 4 kB / 435 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.182e-05/0.2438, allocations: 23.92 kB / 435 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004164/0.2442, allocations: 232.8 kB / 435.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.985e-05/0.2443, allocations: 45.16 kB / 435.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.297e-05/0.2444, allocations: 21.77 kB / 435.3 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.768e-05/0.2444, allocations: 0 / 435.3 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.2444, allocations: 30.56 kB / 435.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.2444, allocations: 0 / 435.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.000251/0.2447, allocations: 77.77 kB / 435.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.098e-05/0.2447, allocations: 81.14 kB / 435.5 MB, free: 3.102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.2449, allocations: 151.6 kB / 435.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.2449, allocations: 33.64 kB / 435.7 MB, free: 2.906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.416e-05/0.245, allocations: 88.14 kB / 435.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.245, allocations: 3.953 kB / 435.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.679e-05/0.245, allocations: 17.7 kB / 435.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.2452, allocations: 314.8 kB / 436.1 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.903e-05/0.2452, allocations: 11.98 kB / 436.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.693e-05/0.2453, allocations: 25.66 kB / 436.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.39e-05/0.2453, allocations: 29.7 kB / 436.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2453, allocations: 0 / 436.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001206/0.2455, allocations: 61.64 kB / 436.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.2455, allocations: 7.984 kB / 436.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2455, allocations: 0 / 436.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.2455, allocations: 4 kB / 436.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.353e-05/0.2456, allocations: 4 kB / 436.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.2456, allocations: 3.938 kB / 436.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.372e-05/0.2456, allocations: 0 / 436.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.2456, allocations: 11.92 kB / 436.3 MB, free: 2.297 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.0001129/0.2457, allocations: 121.9 kB / 436.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.497e-05/0.2458, allocations: 41.59 kB / 436.4 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.2e-05/0.2458, allocations: 11.8 kB / 436.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2458, allocations: 4 kB / 436.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.2459, allocations: 3.938 kB / 436.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.2459, allocations: 0 / 436.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.2461, allocations: 140.7 kB / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.2461, allocations: 0 / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.294e-05/0.2461, allocations: 8 kB / 436.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2461, allocations: 0 / 436.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.2461, allocations: 4.031 kB / 436.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2461, allocations: 4 kB / 436.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.2461, allocations: 7.922 kB / 436.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001729/0.2463, allocations: 148.4 kB / 436.8 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.861e-05/0.2464, allocations: 19.94 kB / 436.8 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.692e-05/0.2464, allocations: 3.938 kB / 436.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.389e-05/0.2465, allocations: 8.031 kB / 436.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.2465, allocations: 3.938 kB / 436.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.2465, allocations: 0 / 436.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.079e-05/0.2466, allocations: 121.6 kB / 436.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2466, allocations: 0 / 436.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002132/0.2468, allocations: 4 kB / 436.9 MB, free: 1.578 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.0004802/0.2473, allocations: 0.6899 MB / 437.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001314/0.2474, allocations: 27.86 kB / 437.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2474, allocations: 0 / 437.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.819e-05/0.2474, allocations: 7.984 kB / 437.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.2478, allocations: 28.17 kB / 437.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.2493, allocations: 1.333 MB / 439 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.2496, allocations: 0.6924 MB / 439.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.468e-05/0.2496, allocations: 4 kB / 439.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.269e-05/0.2497, allocations: 19.38 kB / 439.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2497, allocations: 4 kB / 439.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.2713, allocations: 1.775 MB / 441.5 MB, free: 13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.68, allocations: 10.88 kB / 441.5 MB, free: 13 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.034465414995793]