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.001263/0.001263, allocations: 105.1 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.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.001276/0.001276, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.367/1.367, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.001435/0.001435, allocations: 43.94 kB / 378.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2608, allocations: 53.35 MB / 431.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003275/0.2641, allocations: 1.588 MB / 433.5 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.2652, allocations: 0.5064 MB / 434 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.383e-05/0.2653, allocations: 3.938 kB / 434 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.933e-05/0.2653, allocations: 7.922 kB / 434 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.2655, allocations: 11.88 kB / 434 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003153/0.2658, allocations: 63.81 kB / 434 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.2659, allocations: 47.8 kB / 434.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.266, allocations: 16.16 kB / 434.1 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.2661, allocations: 31.92 kB / 434.1 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.466e-05/0.2662, allocations: 19.86 kB / 434.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.738e-05/0.2662, allocations: 4 kB / 434.2 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.039e-05/0.2662, allocations: 4 kB / 434.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.919e-05/0.2663, allocations: 19.92 kB / 434.2 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.281e-05/0.2663, allocations: 19.86 kB / 434.2 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.2665, allocations: 64.45 kB / 434.3 MB, free: 4.277 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.2665, allocations: 8 kB / 434.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2665, allocations: 4 kB / 434.3 MB, free: 4.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.2665, allocations: 0 / 434.3 MB, free: 4.266 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.0005293/0.267, allocations: 305.9 kB / 434.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.2671, allocations: 8.031 kB / 434.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.854e-05/0.2671, allocations: 192 / 434.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.014e-05/0.2671, allocations: 34.75 kB / 434.6 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.2673, allocations: 20.88 kB / 434.6 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002855/0.2676, allocations: 150.9 kB / 434.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.2676, allocations: 3.938 kB / 434.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.2676, allocations: 4 kB / 434.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.2679, allocations: 121.8 kB / 434.9 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.2679, allocations: 0 / 434.9 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.148e-06/0.2679, allocations: 0 / 434.9 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.2679, allocations: 3.984 kB / 434.9 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.322e-05/0.268, allocations: 23.98 kB / 434.9 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003855/0.2684, allocations: 245.6 kB / 435.2 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.2685, allocations: 67.78 kB / 435.2 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.63e-05/0.2686, allocations: 26.64 kB / 435.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.2686, allocations: 4 kB / 435.3 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.831e-05/0.2687, allocations: 42.55 kB / 435.3 MB, free: 3.047 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.2687, allocations: 0 / 435.3 MB, free: 3.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002781/0.269, allocations: 89.64 kB / 435.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.72e-05/0.269, allocations: 106.8 kB / 435.5 MB, free: 2.824 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.2692, allocations: 156.7 kB / 435.7 MB, free: 2.664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.2692, allocations: 29.64 kB / 435.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.904e-05/0.2693, allocations: 88.14 kB / 435.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.303e-05/0.2693, allocations: 0 / 435.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.2693, allocations: 25.66 kB / 435.8 MB, free: 2.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.2695, allocations: 318.8 kB / 436.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.506e-05/0.2695, allocations: 8.172 kB / 436.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.251e-05/0.2696, allocations: 35.44 kB / 436.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.2697, allocations: 47.36 kB / 436.2 MB, free: 2.074 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2697, allocations: 3.938 kB / 436.2 MB, free: 2.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001347/0.2698, allocations: 73.67 kB / 436.3 MB, free: 1.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2698, allocations: 8 kB / 436.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.2698, allocations: 0 / 436.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.2698, allocations: 4 kB / 436.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.147e-05/0.2699, allocations: 15.98 kB / 436.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.2699, allocations: 3.938 kB / 436.3 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.939e-05/0.27, allocations: 4 kB / 436.3 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.27, allocations: 0 / 436.3 MB, free: 1.957 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.886e-05/0.2701, allocations: 121.8 kB / 436.4 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.374e-05/0.2701, allocations: 53.55 kB / 436.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.688e-05/0.2702, allocations: 20.02 kB / 436.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.2702, allocations: 0 / 436.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.2702, allocations: 7.938 kB / 436.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2702, allocations: 0 / 436.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.2704, allocations: 144.7 kB / 436.7 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2704, allocations: 0 / 436.7 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.717e-05/0.2704, allocations: 8 kB / 436.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.2704, allocations: 0 / 436.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.2704, allocations: 0 / 436.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.2704, allocations: 4 kB / 436.7 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.2705, allocations: 7.875 kB / 436.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001998/0.2707, allocations: 177.2 kB / 436.8 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.57e-05/0.2707, allocations: 15.94 kB / 436.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.2707, allocations: 4 kB / 436.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.187e-05/0.2708, allocations: 7.984 kB / 436.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.609e-05/0.2708, allocations: 3.938 kB / 436.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.2708, allocations: 4 kB / 436.9 MB, free: 1.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.035e-05/0.2709, allocations: 108.9 kB / 437 MB, free: 1.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2709, allocations: 0 / 437 MB, free: 1.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002187/0.2711, allocations: 8 kB / 437 MB, free: 1.191 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.0005001/0.2716, allocations: 0.7063 MB / 437.7 MB, free: 464 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.2718, allocations: 47.78 kB / 437.7 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2718, allocations: 0 / 437.7 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.669e-05/0.2718, allocations: 8 kB / 437.8 MB, free: 408 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/0.2722, allocations: 29.75 kB / 437.8 MB, free: 384 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/0.2736, allocations: 1.409 MB / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.812e-05/0.2737, allocations: 83.31 kB / 439.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.09e-05/0.2737, allocations: 4 kB / 439.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.417e-05/0.2738, allocations: 15.44 kB / 439.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2738, allocations: 4 kB / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02158/0.2954, allocations: 1.917 MB / 441.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.79, allocations: 8.062 kB / 441.2 MB, free: 12.96 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.168367232079618]