Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.001241/0.001241, 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.001303/0.001303, allocations: 188.4 kB / 24.49 MB, free: 3.957 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.86 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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 47.92 kB / 371.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2431, allocations: 52.18 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002768/0.2458, allocations: 1.58 MB / 424.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008214/0.2467, allocations: 446.9 kB / 425.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.045e-05/0.2467, allocations: 4 kB / 425.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.286e-05/0.2468, allocations: 3.938 kB / 425.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001588/0.247, allocations: 11.86 kB / 425.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000301/0.2473, allocations: 53.95 kB / 425.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.2474, allocations: 39.86 kB / 425.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.2475, allocations: 18.27 kB / 425.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.494e-05/0.2476, allocations: 31.86 kB / 425.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.82e-05/0.2476, allocations: 15.88 kB / 425.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.002e-05/0.2477, allocations: 4 kB / 425.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.399e-05/0.2477, allocations: 4 kB / 425.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.758e-05/0.2477, allocations: 11.98 kB / 425.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.128e-05/0.2478, allocations: 23.8 kB / 425.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001421/0.2479, allocations: 55.75 kB / 425.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.2479, allocations: 0 / 425.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2479, allocations: 3.938 kB / 425.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.2479, allocations: 0 / 425.7 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.0005397/0.2485, allocations: 310 kB / 426 MB, free: 11.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.2485, allocations: 8.031 kB / 426 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.589e-05/0.2485, allocations: 8.125 kB / 426 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.813e-05/0.2486, allocations: 34.75 kB / 426 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/0.2486, allocations: 8.891 kB / 426 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002815/0.2489, allocations: 142.3 kB / 426.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.2489, allocations: 4.375 kB / 426.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.2489, allocations: 4.125 kB / 426.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003076/0.2492, allocations: 121.8 kB / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.2492, allocations: 0 / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.2492, allocations: 8 kB / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.2493, allocations: 0 / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.151e-05/0.2494, allocations: 23.92 kB / 426.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003333/0.2497, allocations: 241.7 kB / 426.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.2498, allocations: 71.77 kB / 426.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.655e-05/0.2499, allocations: 34.62 kB / 426.7 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.2499, allocations: 3.938 kB / 426.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.2499, allocations: 38.56 kB / 426.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.2499, allocations: 0 / 426.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002743/0.2502, allocations: 85.5 kB / 426.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.147e-05/0.2503, allocations: 107.1 kB / 426.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.2504, allocations: 148.4 kB / 427 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.2504, allocations: 29.7 kB / 427.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.738e-05/0.2505, allocations: 92.08 kB / 427.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.983e-05/0.2505, allocations: 7.938 kB / 427.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.2506, allocations: 17.72 kB / 427.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.2507, allocations: 322.8 kB / 427.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.45e-05/0.2508, allocations: 7.984 kB / 427.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.376e-05/0.2508, allocations: 35.42 kB / 427.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.625e-05/0.2509, allocations: 51.36 kB / 427.6 MB, free: 9.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.2509, allocations: 0 / 427.6 MB, free: 9.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001401/0.251, allocations: 69.58 kB / 427.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2511, allocations: 7.984 kB / 427.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2511, allocations: 4 kB / 427.7 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.2511, allocations: 0 / 427.7 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.334e-05/0.2512, allocations: 12.06 kB / 427.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.2512, allocations: 7.984 kB / 427.7 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.067e-05/0.2512, allocations: 4 kB / 427.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.2512, allocations: 3.984 kB / 427.7 MB, free: 9.801 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.253e-05/0.2513, allocations: 121.8 kB / 427.8 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.006e-05/0.2514, allocations: 53.58 kB / 427.9 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.331e-05/0.2515, allocations: 11.97 kB / 427.9 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2515, allocations: 0 / 427.9 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.2515, allocations: 4 kB / 427.9 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2515, allocations: 64 / 427.9 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.2516, allocations: 152.7 kB / 428 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2516, allocations: 0 / 428 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.712e-05/0.2517, allocations: 8 kB / 428 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2517, allocations: 0 / 428 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.2517, allocations: 3.984 kB / 428 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.2517, allocations: 7.938 kB / 428 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2517, allocations: 0 / 428 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001961/0.2519, allocations: 177.1 kB / 428.2 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.933e-05/0.252, allocations: 19.94 kB / 428.2 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.252, allocations: 4 kB / 428.2 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.453e-05/0.252, allocations: 11.94 kB / 428.3 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.475e-05/0.2521, allocations: 4 kB / 428.3 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.2521, allocations: 4 kB / 428.3 MB, free: 9.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.623e-05/0.2522, allocations: 107.2 kB / 428.4 MB, free: 9.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2522, allocations: 0 / 428.4 MB, free: 9.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.2524, allocations: 8 kB / 428.4 MB, free: 9.031 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.0004947/0.2529, allocations: 0.7062 MB / 429.1 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001577/0.253, allocations: 39.91 kB / 429.1 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.253, allocations: 0 / 429.1 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.934e-05/0.2531, allocations: 8 kB / 429.1 MB, free: 8.246 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.2534, allocations: 27.45 kB / 429.2 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.2549, allocations: 1.403 MB / 430.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.361e-05/0.255, allocations: 83.17 kB / 430.6 MB, free: 6.609 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.431e-05/0.255, allocations: 4.031 kB / 430.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.712e-05/0.255, allocations: 15.44 kB / 430.7 MB, free: 6.59 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.255, allocations: 0 / 430.7 MB, free: 6.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/0.2769, allocations: 1.878 MB / 432.5 MB, free: 4.863 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.81, allocations: 3.625 kB / 432.5 MB, free: 4.863 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.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.189848046051338]