Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.001336/0.001336, 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.001519/0.001519, 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.484/1.484, 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.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 43.92 kB / 371.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3101, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002934/0.3131, allocations: 1.568 MB / 425 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000912/0.314, allocations: 482.8 kB / 425.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.622e-05/0.3141, allocations: 4 kB / 425.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.083e-05/0.3141, allocations: 7.922 kB / 425.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.3143, allocations: 7.875 kB / 425.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.3145, allocations: 43.89 kB / 425.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.3147, allocations: 55.77 kB / 425.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.3148, allocations: 12 kB / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.339e-05/0.3149, allocations: 23.86 kB / 425.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.748e-05/0.3149, allocations: 19.86 kB / 425.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.964e-05/0.315, allocations: 4 kB / 425.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.308e-05/0.315, allocations: 4 kB / 425.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.957e-05/0.315, allocations: 15.97 kB / 425.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.815e-05/0.3151, allocations: 23.81 kB / 425.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.3152, allocations: 59.39 kB / 425.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3152, allocations: 0 / 425.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3152, allocations: 0 / 425.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.3152, allocations: 4 kB / 425.7 MB, free: 12.26 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.0004838/0.3157, allocations: 299.1 kB / 426 MB, free: 11.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.3158, allocations: 8.031 kB / 426 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.365e-05/0.3158, allocations: 192 / 426 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.68e-05/0.3158, allocations: 42.69 kB / 426.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/0.3158, allocations: 8.891 kB / 426.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/0.3161, allocations: 142.3 kB / 426.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.963e-06/0.3161, allocations: 4.375 kB / 426.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.3162, allocations: 8.312 kB / 426.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002792/0.3164, allocations: 113 kB / 426.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3164, allocations: 3.984 kB / 426.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.3164, allocations: 0 / 426.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3165, allocations: 4 kB / 426.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.897e-05/0.3165, allocations: 15.98 kB / 426.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003222/0.3169, allocations: 236.7 kB / 426.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.055e-05/0.3169, allocations: 45.27 kB / 426.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.038e-05/0.317, allocations: 25.7 kB / 426.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.317, allocations: 7.922 kB / 426.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.317, allocations: 30.56 kB / 426.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.317, allocations: 0 / 426.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002306/0.3173, allocations: 65.61 kB / 426.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.3173, allocations: 81.36 kB / 426.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.3175, allocations: 148.5 kB / 427 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.3175, allocations: 25.7 kB / 427 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.063e-05/0.3175, allocations: 88.12 kB / 427.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.114e-05/0.3175, allocations: 0 / 427.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.856e-05/0.3176, allocations: 17.67 kB / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.3177, allocations: 322.8 kB / 427.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.448e-05/0.3177, allocations: 15.98 kB / 427.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.113e-05/0.3178, allocations: 17.72 kB / 427.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.621e-05/0.3179, allocations: 33.64 kB / 427.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3179, allocations: 0 / 427.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001227/0.318, allocations: 57.73 kB / 427.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.318, allocations: 8 kB / 427.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.318, allocations: 3.938 kB / 427.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.318, allocations: 3.938 kB / 427.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.853e-05/0.3181, allocations: 4 kB / 427.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.3181, allocations: 0 / 427.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.751e-05/0.3181, allocations: 7.984 kB / 427.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.3181, allocations: 0 / 427.6 MB, free: 10.16 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 9.02e-05/0.3182, allocations: 117.7 kB / 427.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.027e-05/0.3183, allocations: 45.72 kB / 427.7 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.042e-05/0.3183, allocations: 11.8 kB / 427.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.3183, allocations: 0 / 427.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3183, allocations: 0 / 427.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3183, allocations: 0 / 427.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.3185, allocations: 144.7 kB / 427.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.3185, allocations: 0 / 427.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.163e-05/0.3185, allocations: 4 kB / 427.9 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3185, allocations: 3.938 kB / 427.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.3186, allocations: 11.92 kB / 427.9 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3186, allocations: 4.031 kB / 427.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3186, allocations: 0 / 427.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001915/0.3187, allocations: 160.3 kB / 428.1 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.112e-05/0.3188, allocations: 15.94 kB / 428.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.3188, allocations: 0 / 428.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.65e-05/0.3189, allocations: 4.031 kB / 428.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.523e-05/0.3189, allocations: 7.984 kB / 428.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-06/0.3189, allocations: 0 / 428.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.649e-05/0.319, allocations: 107.3 kB / 428.2 MB, free: 9.461 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.319, allocations: 0 / 428.2 MB, free: 9.461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002152/0.3192, allocations: 4 kB / 428.2 MB, free: 9.457 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.0004983/0.3197, allocations: 0.6936 MB / 428.9 MB, free: 8.734 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001388/0.3198, allocations: 23.92 kB / 428.9 MB, free: 8.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3199, allocations: 4 kB / 428.9 MB, free: 8.707 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.731e-05/0.3199, allocations: 7.984 kB / 428.9 MB, free: 8.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.3202, allocations: 22.81 kB / 429 MB, free: 8.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.3216, allocations: 1.323 MB / 430.3 MB, free: 7.266 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.3219, allocations: 0.6922 MB / 431 MB, free: 6.547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.903e-05/0.3219, allocations: 4.031 kB / 431 MB, free: 6.543 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.322e-05/0.322, allocations: 19.42 kB / 431 MB, free: 6.523 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.322, allocations: 0 / 431 MB, free: 6.523 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02205/0.344, allocations: 1.668 MB / 432.7 MB, free: 5.004 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.06, allocations: 7.188 kB / 432.7 MB, free: 5 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.f,sine.offset,sine.phase,sine.startTime,sine.y,subSample1.factor,time [Calling sys.exit(0), Time elapsed: 13.578266853990499]