Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.001312/0.001312, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001343/0.001343, allocations: 186.8 kB / 24.49 MB, free: 3.961 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.33/1.33, allocations: 225.7 MB / 253.3 MB, free: 12.87 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.RealSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 43.94 kB / 371.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2289, allocations: 52.18 MB / 423.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.002799/0.2317, allocations: 1.611 MB / 425 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008691/0.2325, allocations: 478.8 kB / 425.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.205e-05/0.2326, allocations: 4 kB / 425.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.45e-05/0.2327, allocations: 11.86 kB / 425.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001239/0.2328, allocations: 7.938 kB / 425.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.233, allocations: 51.83 kB / 425.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000107/0.2331, allocations: 55.78 kB / 425.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.551e-05/0.2332, allocations: 22.08 kB / 425.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.006e-05/0.2333, allocations: 27.86 kB / 425.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.228e-05/0.2334, allocations: 19.86 kB / 425.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.2334, allocations: 4 kB / 425.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.304e-05/0.2334, allocations: 4 kB / 425.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.498e-05/0.2334, allocations: 19.92 kB / 425.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.253e-05/0.2335, allocations: 27.8 kB / 425.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.2336, allocations: 63.67 kB / 425.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.758e-06/0.2336, allocations: 0 / 425.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2336, allocations: 0 / 425.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.2336, allocations: 0 / 425.7 MB, free: 12.03 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005093/0.2342, allocations: 321 kB / 426.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.2342, allocations: 8.031 kB / 426.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.19e-05/0.2342, allocations: 192 / 426.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.604e-05/0.2343, allocations: 34.75 kB / 426.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.822e-05/0.2343, allocations: 20.84 kB / 426.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000231/0.2345, allocations: 142.9 kB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.2345, allocations: 8.125 kB / 426.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.2345, allocations: 4 kB / 426.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.2348, allocations: 126.7 kB / 426.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2349, allocations: 3.984 kB / 426.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.2349, allocations: 8 kB / 426.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2349, allocations: 4 kB / 426.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.424e-05/0.235, allocations: 23.92 kB / 426.4 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003433/0.2353, allocations: 254.6 kB / 426.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001399/0.2354, allocations: 90.3 kB / 426.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.779e-05/0.2355, allocations: 43.55 kB / 426.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.2355, allocations: 15.92 kB / 426.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.2356, allocations: 34.56 kB / 426.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.2356, allocations: 0 / 426.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002895/0.2359, allocations: 105.5 kB / 427 MB, free: 10.61 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.027e-05/0.2359, allocations: 132.5 kB / 427.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.2361, allocations: 152.6 kB / 427.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.2361, allocations: 29.7 kB / 427.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.243e-05/0.2362, allocations: 92.62 kB / 427.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.2362, allocations: 19.89 kB / 427.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.2362, allocations: 17.72 kB / 427.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.2363, allocations: 314.8 kB / 427.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.693e-05/0.2364, allocations: 12 kB / 427.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.781e-05/0.2365, allocations: 48.28 kB / 427.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/0.2366, allocations: 64.22 kB / 427.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2366, allocations: 0 / 427.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000155/0.2367, allocations: 81.5 kB / 427.9 MB, free: 9.566 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.2367, allocations: 8 kB / 427.9 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.2368, allocations: 0 / 427.9 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.2368, allocations: 3.984 kB / 427.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.112e-05/0.2368, allocations: 15.94 kB / 427.9 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.2369, allocations: 4.094 kB / 427.9 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.672e-05/0.2369, allocations: 11.98 kB / 428 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.2369, allocations: 4 kB / 428 MB, free: 9.52 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (6): * Single equations (assignments): 6 * 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 9.063e-05/0.237, allocations: 121.8 kB / 428.1 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.846e-05/0.2371, allocations: 57.64 kB / 428.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/0.2371, allocations: 15.95 kB / 428.2 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2371, allocations: 0 / 428.2 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.2371, allocations: 3.938 kB / 428.2 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.2371, allocations: 4 kB / 428.2 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.2373, allocations: 140.7 kB / 428.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2373, allocations: 4.062 kB / 428.3 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.8e-05/0.2374, allocations: 19.92 kB / 428.3 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.2374, allocations: 0 / 428.3 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.2374, allocations: 8 kB / 428.3 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2374, allocations: 0 / 428.3 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2374, allocations: 3.938 kB / 428.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002242/0.2376, allocations: 202 kB / 428.5 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.554e-05/0.2377, allocations: 11.94 kB / 428.5 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.898e-05/0.2377, allocations: 8 kB / 428.5 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.327e-05/0.2378, allocations: 7.984 kB / 428.6 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.813e-05/0.2378, allocations: 7.938 kB / 428.6 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.443e-06/0.2378, allocations: 4.188 kB / 428.6 MB, free: 8.824 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.195e-05/0.2379, allocations: 113.1 kB / 428.7 MB, free: 8.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2379, allocations: 0 / 428.7 MB, free: 8.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.2381, allocations: 12 kB / 428.7 MB, free: 8.703 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (6): * Single equations (assignments): 6 * 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.0005885/0.2387, allocations: 0.7304 MB / 429.4 MB, free: 7.938 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.2389, allocations: 51.91 kB / 429.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2389, allocations: 0 / 429.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.113e-05/0.2389, allocations: 11.98 kB / 429.5 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.2393, allocations: 31.95 kB / 429.5 MB, free: 7.844 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.241, allocations: 1.455 MB / 431 MB, free: 6.266 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001011/0.2411, allocations: 83.47 kB / 431 MB, free: 6.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.496e-05/0.2411, allocations: 7.984 kB / 431.1 MB, free: 6.152 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.708e-05/0.2412, allocations: 23.38 kB / 431.1 MB, free: 6.129 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2412, allocations: 0 / 431.1 MB, free: 6.129 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02242/0.2636, allocations: 2.1 MB / 433.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.9, allocations: 5.438 kB / 433.2 MB, free: 4.188 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.u,hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.23214622400701]