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.001267/0.001267, allocations: 108.6 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.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.001309/0.001309, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.374/1.374, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.001421/0.001421, allocations: 43.92 kB / 371.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2543, allocations: 52.19 MB / 423.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002771/0.2571, allocations: 1.599 MB / 425 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007979/0.2579, allocations: 478.8 kB / 425.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.796e-05/0.258, allocations: 7.938 kB / 425.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.978e-05/0.258, allocations: 7.922 kB / 425.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001163/0.2581, allocations: 15.8 kB / 425.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.2584, allocations: 47.89 kB / 425.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.2585, allocations: 43.84 kB / 425.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.2586, allocations: 12.19 kB / 425.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.887e-05/0.2587, allocations: 23.91 kB / 425.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.987e-05/0.2587, allocations: 23.86 kB / 425.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.2587, allocations: 4 kB / 425.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.247e-05/0.2588, allocations: 7.938 kB / 425.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.396e-05/0.2588, allocations: 15.92 kB / 425.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.706e-05/0.2588, allocations: 23.81 kB / 425.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.259, allocations: 60.52 kB / 425.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.259, allocations: 4 kB / 425.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.259, allocations: 0 / 425.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.259, allocations: 0 / 425.8 MB, free: 12.21 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.0004247/0.2594, allocations: 302 kB / 426.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.2594, allocations: 8.031 kB / 426.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.076e-05/0.2594, allocations: 4.125 kB / 426.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.236e-05/0.2595, allocations: 34.75 kB / 426.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.598e-05/0.2595, allocations: 8.891 kB / 426.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002241/0.2597, allocations: 158.2 kB / 426.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-06/0.2597, allocations: 4.375 kB / 426.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.2597, allocations: 12.12 kB / 426.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/0.26, allocations: 109.9 kB / 426.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.26, allocations: 0 / 426.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.26, allocations: 4 kB / 426.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.26, allocations: 0 / 426.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.376e-05/0.2601, allocations: 27.92 kB / 426.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003009/0.2604, allocations: 249.7 kB / 426.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001107/0.2605, allocations: 67.8 kB / 426.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.629e-05/0.2606, allocations: 30.62 kB / 426.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.2606, allocations: 0 / 426.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.2606, allocations: 42.56 kB / 426.8 MB, free: 11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.52e-07/0.2606, allocations: 0 / 426.8 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002516/0.2609, allocations: 89.48 kB / 426.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.87e-05/0.2609, allocations: 106.8 kB / 427 MB, free: 10.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.2611, allocations: 140.4 kB / 427.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.2611, allocations: 29.7 kB / 427.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.436e-05/0.2612, allocations: 92.06 kB / 427.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.469e-05/0.2612, allocations: 4.328 kB / 427.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.2612, allocations: 21.72 kB / 427.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2613, allocations: 326.8 kB / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.893e-05/0.2614, allocations: 4 kB / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.614e-05/0.2614, allocations: 39.36 kB / 427.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.062e-05/0.2615, allocations: 47.42 kB / 427.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-06/0.2615, allocations: 0 / 427.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001408/0.2617, allocations: 77.5 kB / 427.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.2617, allocations: 4 kB / 427.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.2617, allocations: 0 / 427.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.2617, allocations: 8.125 kB / 427.8 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.917e-05/0.2618, allocations: 8 kB / 427.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.2618, allocations: 3.984 kB / 427.8 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.008e-05/0.2618, allocations: 4 kB / 427.8 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.2618, allocations: 0 / 427.8 MB, free: 9.918 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 8.573e-05/0.2619, allocations: 117.8 kB / 427.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.222e-05/0.262, allocations: 61.52 kB / 428 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.192e-05/0.262, allocations: 12.03 kB / 428 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.262, allocations: 4 kB / 428 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.262, allocations: 0 / 428 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2621, allocations: 7.922 kB / 428 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001703/0.2622, allocations: 148.7 kB / 428.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2622, allocations: 0 / 428.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-05/0.2623, allocations: 8 kB / 428.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.2623, allocations: 7.938 kB / 428.2 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.2623, allocations: 3.984 kB / 428.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.2623, allocations: 0 / 428.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2623, allocations: 0 / 428.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002052/0.2625, allocations: 185.1 kB / 428.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.186e-05/0.2625, allocations: 7.953 kB / 428.4 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.2625, allocations: 7.984 kB / 428.4 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.563e-05/0.2626, allocations: 4.141 kB / 428.4 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.719e-05/0.2626, allocations: 3.984 kB / 428.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.2626, allocations: 8 kB / 428.4 MB, free: 9.258 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.712e-05/0.2627, allocations: 107.2 kB / 428.5 MB, free: 9.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2627, allocations: 0 / 428.5 MB, free: 9.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002192/0.263, allocations: 11.94 kB / 428.5 MB, free: 9.141 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.0005288/0.2635, allocations: 0.7063 MB / 429.2 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001399/0.2636, allocations: 35.91 kB / 429.2 MB, free: 8.367 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2636, allocations: 0 / 429.2 MB, free: 8.367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.453e-05/0.2637, allocations: 8 kB / 429.3 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003451/0.264, allocations: 35.67 kB / 429.3 MB, free: 8.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.2655, allocations: 1.399 MB / 430.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003394/0.2658, allocations: 0.6961 MB / 431.4 MB, free: 6.094 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.622e-05/0.2658, allocations: 7.984 kB / 431.4 MB, free: 6.086 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.447e-05/0.2659, allocations: 15.44 kB / 431.4 MB, free: 6.07 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2659, allocations: 0 / 431.4 MB, free: 6.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.2868, allocations: 1.821 MB / 433.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.75, allocations: 4.062 kB / 433.2 MB, free: 4.398 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.145284554979298]