Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.001311/0.001311, 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.001365/0.001365, 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.37/1.37, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 47.92 kB / 378.5 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2397, allocations: 53.37 MB / 431.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002705/0.2424, allocations: 1.577 MB / 433.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00089/0.2433, allocations: 0.5415 MB / 434 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.435e-05/0.2434, allocations: 7.938 kB / 434 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.755e-05/0.2434, allocations: 3.938 kB / 434 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.2435, allocations: 15.84 kB / 434.1 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000257/0.2438, allocations: 55.83 kB / 434.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.2439, allocations: 51.78 kB / 434.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.719e-05/0.2439, allocations: 8.188 kB / 434.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.2441, allocations: 31.91 kB / 434.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.164e-05/0.2441, allocations: 23.86 kB / 434.2 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.2441, allocations: 4 kB / 434.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.134e-05/0.2441, allocations: 4 kB / 434.2 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.464e-05/0.2442, allocations: 15.92 kB / 434.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.077e-05/0.2442, allocations: 27.81 kB / 434.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001267/0.2444, allocations: 64.52 kB / 434.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2444, allocations: 3.938 kB / 434.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2444, allocations: 0 / 434.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.2444, allocations: 0 / 434.3 MB, free: 4.395 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.0004163/0.2448, allocations: 309.9 kB / 434.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.2448, allocations: 12.03 kB / 434.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.448e-06/0.2448, allocations: 192 / 434.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.22e-05/0.2449, allocations: 38.75 kB / 434.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.245, allocations: 16.88 kB / 434.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002096/0.2452, allocations: 145.4 kB / 434.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.363e-06/0.2452, allocations: 4.375 kB / 434.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.2452, allocations: 12.12 kB / 434.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002298/0.2455, allocations: 97.05 kB / 435 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.2455, allocations: 4 kB / 435 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.2455, allocations: 7.984 kB / 435 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.2455, allocations: 3.984 kB / 435 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.197e-05/0.2455, allocations: 23.92 kB / 435 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002707/0.2458, allocations: 228.8 kB / 435.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.676e-05/0.2459, allocations: 45.14 kB / 435.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.184e-05/0.246, allocations: 17.78 kB / 435.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.246, allocations: 7.984 kB / 435.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.246, allocations: 38.55 kB / 435.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.246, allocations: 3.938 kB / 435.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.000217/0.2462, allocations: 65.58 kB / 435.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.2463, allocations: 77.36 kB / 435.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.2464, allocations: 153.8 kB / 435.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.2464, allocations: 25.7 kB / 435.7 MB, free: 2.887 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.028e-05/0.2465, allocations: 84.14 kB / 435.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.651e-05/0.2465, allocations: 11.94 kB / 435.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.798e-05/0.2465, allocations: 9.719 kB / 435.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.2466, allocations: 322.8 kB / 436.1 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.811e-05/0.2467, allocations: 7.984 kB / 436.1 MB, free: 2.441 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.135e-05/0.2467, allocations: 21.72 kB / 436.1 MB, free: 2.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.128e-05/0.2468, allocations: 29.7 kB / 436.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.2468, allocations: 0 / 436.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001213/0.2469, allocations: 61.56 kB / 436.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.2469, allocations: 8 kB / 436.2 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-06/0.2469, allocations: 4.125 kB / 436.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.2469, allocations: 0 / 436.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.593e-05/0.247, allocations: 4 kB / 436.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.247, allocations: 0 / 436.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.57e-05/0.247, allocations: 7.984 kB / 436.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-06/0.247, allocations: 0 / 436.2 MB, free: 2.289 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.114e-05/0.2471, allocations: 117.8 kB / 436.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.216e-05/0.2472, allocations: 45.53 kB / 436.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.942e-05/0.2472, allocations: 23.78 kB / 436.4 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2472, allocations: 0 / 436.4 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.2472, allocations: 0 / 436.4 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2472, allocations: 4 kB / 436.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001548/0.2474, allocations: 136.7 kB / 436.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2474, allocations: 0 / 436.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.377e-05/0.2474, allocations: 8 kB / 436.5 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.2474, allocations: 4 kB / 436.5 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.2474, allocations: 3.984 kB / 436.6 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2474, allocations: 0 / 436.6 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2474, allocations: 0 / 436.6 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001674/0.2476, allocations: 164.2 kB / 436.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.528e-05/0.2476, allocations: 15.94 kB / 436.7 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.2477, allocations: 4 kB / 436.7 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.36e-05/0.2477, allocations: 4 kB / 436.7 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.615e-05/0.2477, allocations: 3.984 kB / 436.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.2477, allocations: 8.031 kB / 436.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.053e-05/0.2478, allocations: 105.7 kB / 436.9 MB, free: 1.578 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2478, allocations: 0 / 436.9 MB, free: 1.578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002095/0.248, allocations: 7.938 kB / 436.9 MB, free: 1.57 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.0004322/0.2485, allocations: 0.6993 MB / 437.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001194/0.2486, allocations: 19.98 kB / 437.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.2486, allocations: 0 / 437.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.029e-05/0.2486, allocations: 15.98 kB / 437.6 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.2489, allocations: 22.95 kB / 437.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.2502, allocations: 1.32 MB / 438.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.2505, allocations: 0.6924 MB / 439.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.791e-05/0.2505, allocations: 8.016 kB / 439.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.78e-05/0.2506, allocations: 15.44 kB / 439.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2506, allocations: 0 / 439.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04483/0.2954, allocations: 1.699 MB / 441.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.69, allocations: 7.438 kB / 441.4 MB, free: 13.08 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.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,time [Calling sys.exit(0), Time elapsed: 13.092635990004055]