Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.001228/0.001228, allocations: 112.2 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.001357/0.001357, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.345/1.345, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.RealSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 47.92 kB / 378.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.24, allocations: 53.36 MB / 431.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002746/0.2427, allocations: 1.612 MB / 433.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009323/0.2437, allocations: 0.5531 MB / 434.1 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.401e-05/0.2437, allocations: 3.938 kB / 434.1 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.865e-05/0.2438, allocations: 7.875 kB / 434.1 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.2439, allocations: 11.94 kB / 434.1 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002733/0.2442, allocations: 59.81 kB / 434.2 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001069/0.2443, allocations: 51.83 kB / 434.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.605e-05/0.2444, allocations: 8.188 kB / 434.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.2445, allocations: 35.8 kB / 434.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.776e-05/0.2445, allocations: 19.91 kB / 434.3 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.2445, allocations: 4 kB / 434.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.413e-05/0.2446, allocations: 8 kB / 434.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.951e-05/0.2446, allocations: 15.92 kB / 434.3 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.156e-05/0.2446, allocations: 27.75 kB / 434.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.2448, allocations: 64.58 kB / 434.4 MB, free: 4.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2448, allocations: 0 / 434.4 MB, free: 4.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2448, allocations: 0 / 434.4 MB, free: 4.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.2448, allocations: 0 / 434.4 MB, free: 4.391 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.0004219/0.2452, allocations: 305.9 kB / 434.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.2452, allocations: 12.03 kB / 434.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.332e-05/0.2453, allocations: 4.125 kB / 434.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.394e-05/0.2453, allocations: 38.73 kB / 434.8 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.2454, allocations: 20.89 kB / 434.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.2457, allocations: 142.9 kB / 434.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.2457, allocations: 7.938 kB / 434.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.736e-06/0.2457, allocations: 0 / 434.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002453/0.2459, allocations: 117.9 kB / 435 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.2459, allocations: 0 / 435 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.2459, allocations: 3.984 kB / 435.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.2459, allocations: 0 / 435.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.016e-05/0.246, allocations: 27.92 kB / 435.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002964/0.2463, allocations: 245.7 kB / 435.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001126/0.2464, allocations: 67.78 kB / 435.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.143e-05/0.2465, allocations: 26.64 kB / 435.4 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.2465, allocations: 7.938 kB / 435.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.2465, allocations: 38.55 kB / 435.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.2465, allocations: 0 / 435.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002575/0.2468, allocations: 85.52 kB / 435.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.499e-05/0.2469, allocations: 115.1 kB / 435.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.247, allocations: 153.6 kB / 435.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.247, allocations: 25.7 kB / 435.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.797e-05/0.2471, allocations: 92.14 kB / 435.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.164e-05/0.2471, allocations: 0 / 435.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.859e-05/0.2471, allocations: 25.66 kB / 435.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.2472, allocations: 314.8 kB / 436.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.367e-05/0.2473, allocations: 15.92 kB / 436.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.173e-05/0.2473, allocations: 35.44 kB / 436.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.329e-05/0.2474, allocations: 43.36 kB / 436.3 MB, free: 2.191 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2474, allocations: 4 kB / 436.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001298/0.2476, allocations: 65.61 kB / 436.4 MB, free: 2.117 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.2476, allocations: 8 kB / 436.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.2476, allocations: 4 kB / 436.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.2476, allocations: 0 / 436.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.242e-05/0.2477, allocations: 15.92 kB / 436.4 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.2477, allocations: 7.938 kB / 436.4 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.842e-05/0.2477, allocations: 4.125 kB / 436.4 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.535e-06/0.2477, allocations: 8 kB / 436.5 MB, free: 2.07 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.057e-05/0.2478, allocations: 117.8 kB / 436.6 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.18e-05/0.2479, allocations: 57.55 kB / 436.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.029e-05/0.2479, allocations: 12.05 kB / 436.6 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.2479, allocations: 7.984 kB / 436.6 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.2479, allocations: 3.938 kB / 436.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2479, allocations: 0 / 436.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001716/0.2481, allocations: 144.7 kB / 436.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2481, allocations: 4.062 kB / 436.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.672e-05/0.2482, allocations: 11.98 kB / 436.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2482, allocations: 0 / 436.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.2482, allocations: 4 kB / 436.8 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2482, allocations: 0 / 436.8 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.2482, allocations: 3.938 kB / 436.8 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001954/0.2484, allocations: 185.1 kB / 437 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.388e-05/0.2484, allocations: 11.94 kB / 437 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.2484, allocations: 0 / 437 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.152e-05/0.2485, allocations: 8 kB / 437 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.868e-05/0.2485, allocations: 7.922 kB / 437 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.2485, allocations: 7.938 kB / 437 MB, free: 1.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.493e-05/0.2486, allocations: 105 kB / 437.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2486, allocations: 0 / 437.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002203/0.2488, allocations: 8 kB / 437.1 MB, free: 1.301 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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.000473/0.2493, allocations: 0.7102 MB / 437.9 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001414/0.2494, allocations: 43.86 kB / 437.9 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2495, allocations: 0 / 437.9 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.695e-05/0.2495, allocations: 7.984 kB / 437.9 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.2498, allocations: 23.95 kB / 437.9 MB, free: 496 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.2512, allocations: 1.412 MB / 439.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.2515, allocations: 0.6947 MB / 440 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.34e-05/0.2515, allocations: 7.984 kB / 440 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.337e-05/0.2516, allocations: 19.44 kB / 440.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2516, allocations: 0 / 440.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02097/0.2725, allocations: 1.86 MB / 441.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.68, allocations: 6.969 kB / 441.9 MB, free: 12.51 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,subSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,subSample1.factor,subSample1.inferFactor,subSample1.u,subSample1.y,time [Calling sys.exit(0), Time elapsed: 13.073379479988944]