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.001298/0.001298, allocations: 107.9 kB / 18.48 MB, free: 4.543 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.00139/0.00139, allocations: 198.5 kB / 21.43 MB, free: 1.609 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.462/1.462, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.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.001617/0.001617, allocations: 51.91 kB / 366.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1067, allocations: 52.14 MB / 418.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.003055/0.1097, allocations: 1.571 MB / 420 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009044/0.1106, allocations: 478.7 kB / 420.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.276e-05/0.1107, allocations: 7.938 kB / 420.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.56e-05/0.1108, allocations: 3.938 kB / 420.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.1109, allocations: 11.86 kB / 420.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002827/0.1112, allocations: 39.91 kB / 420.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001212/0.1113, allocations: 51.84 kB / 420.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.591e-05/0.1114, allocations: 11.98 kB / 420.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.13e-05/0.1115, allocations: 23.86 kB / 420.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.063e-05/0.1116, allocations: 19.92 kB / 420.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.1116, allocations: 0 / 420.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.203e-05/0.1116, allocations: 4 kB / 420.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.063e-05/0.1116, allocations: 15.92 kB / 420.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.135e-05/0.1117, allocations: 31.8 kB / 420.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001364/0.1118, allocations: 55.62 kB / 420.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1118, allocations: 0 / 420.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1118, allocations: 0 / 420.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.1118, allocations: 4 kB / 420.8 MB, free: 10.3 MB / 350.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.0005441/0.1124, allocations: 383.1 kB / 421.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1124, allocations: 8.031 kB / 421.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.291e-05/0.1124, allocations: 192 / 421.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.139e-05/0.1125, allocations: 46.67 kB / 421.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.1e-05/0.1125, allocations: 8.891 kB / 421.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.1128, allocations: 198.1 kB / 421.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.1128, allocations: 4.375 kB / 421.4 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.631e-05/0.1128, allocations: 4.375 kB / 421.4 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.1131, allocations: 109 kB / 421.5 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.1131, allocations: 3.938 kB / 421.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.1131, allocations: 3.938 kB / 421.5 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.1131, allocations: 4 kB / 421.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.242e-05/0.1132, allocations: 19.98 kB / 421.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003292/0.1135, allocations: 257.7 kB / 421.8 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.1136, allocations: 45.14 kB / 421.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.606e-05/0.1137, allocations: 29.77 kB / 421.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.1137, allocations: 0 / 421.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.1137, allocations: 30.56 kB / 421.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1137, allocations: 0 / 421.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002636/0.114, allocations: 65.86 kB / 422 MB, free: 8.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.1141, allocations: 85.05 kB / 422.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.1142, allocations: 144.2 kB / 422.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.1142, allocations: 25.7 kB / 422.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.626e-05/0.1143, allocations: 92.12 kB / 422.3 MB, free: 8.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.581e-05/0.1143, allocations: 3.938 kB / 422.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.557e-05/0.1143, allocations: 17.67 kB / 422.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1145, allocations: 318.8 kB / 422.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.552e-05/0.1145, allocations: 15.98 kB / 422.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.174e-05/0.1145, allocations: 17.72 kB / 422.7 MB, free: 8.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.106e-05/0.1146, allocations: 29.7 kB / 422.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1146, allocations: 0 / 422.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001312/0.1148, allocations: 61.67 kB / 422.8 MB, free: 8.039 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.1148, allocations: 4 kB / 422.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.1148, allocations: 0 / 422.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.1148, allocations: 7.984 kB / 422.8 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.348e-05/0.1149, allocations: 4 kB / 422.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.1149, allocations: 0 / 422.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.947e-05/0.1149, allocations: 7.984 kB / 422.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.513e-06/0.1149, allocations: 0 / 422.8 MB, free: 8.016 MB / 350.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.441e-05/0.115, allocations: 122.4 kB / 422.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.057e-05/0.1151, allocations: 41.72 kB / 422.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.121e-05/0.1151, allocations: 15.86 kB / 423 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1151, allocations: 4 kB / 423 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.1151, allocations: 0 / 423 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1151, allocations: 0 / 423 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000178/0.1153, allocations: 169.5 kB / 423.1 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1153, allocations: 7.938 kB / 423.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.388e-05/0.1153, allocations: 4 kB / 423.1 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.1153, allocations: 3.984 kB / 423.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.1154, allocations: 0 / 423.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1154, allocations: 4.031 kB / 423.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1154, allocations: 4 kB / 423.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001783/0.1155, allocations: 160.2 kB / 423.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.761e-05/0.1156, allocations: 93.05 kB / 423.4 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.1156, allocations: 4 kB / 423.4 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.693e-05/0.1157, allocations: 8.016 kB / 423.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/0.1157, allocations: 0 / 423.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.1157, allocations: 4 kB / 423.4 MB, free: 7.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.472e-05/0.1158, allocations: 107.2 kB / 423.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1158, allocations: 0 / 423.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002159/0.116, allocations: 4 kB / 423.5 MB, free: 7.168 MB / 350.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.0005586/0.1166, allocations: 0.6975 MB / 424.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.1167, allocations: 23.97 kB / 424.3 MB, free: 6.418 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1167, allocations: 0 / 424.3 MB, free: 6.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.915e-05/0.1168, allocations: 8 kB / 424.3 MB, free: 6.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.1171, allocations: 28.78 kB / 424.3 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.1185, allocations: 1.308 MB / 425.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.1189, allocations: 0.6922 MB / 426.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.178e-05/0.1189, allocations: 4.031 kB / 426.3 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.614e-05/0.1189, allocations: 19.42 kB / 426.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1189, allocations: 0 / 426.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0194/0.1383, allocations: 1.581 MB / 427.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.13/8.269, allocations: 10.45 kB / 427.9 MB, free: 2.789 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.774150315963197]