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.001286/0.001286, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.001363/0.001363, allocations: 219 kB / 21.46 MB, free: 1.605 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.465/1.465, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.001495/0.001495, allocations: 51.94 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1058, allocations: 53.33 MB / 427 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002918/0.1087, allocations: 1.593 MB / 428.6 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009954/0.1097, allocations: 0.5454 MB / 429.2 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.595e-05/0.1098, allocations: 3.938 kB / 429.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.05e-05/0.1098, allocations: 7.922 kB / 429.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.11, allocations: 11.88 kB / 429.2 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003011/0.1103, allocations: 59.81 kB / 429.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000127/0.1104, allocations: 47.8 kB / 429.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.447e-05/0.1105, allocations: 20.16 kB / 429.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.1106, allocations: 27.92 kB / 429.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.855e-05/0.1107, allocations: 19.86 kB / 429.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.337e-05/0.1107, allocations: 7.938 kB / 429.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.888e-05/0.1107, allocations: 8 kB / 429.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.48e-05/0.1108, allocations: 23.84 kB / 429.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.717e-05/0.1108, allocations: 23.81 kB / 429.4 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.1109, allocations: 63.67 kB / 429.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1109, allocations: 0 / 429.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1109, allocations: 0 / 429.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.347e-06/0.111, allocations: 0 / 429.5 MB, free: 2.336 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.0004986/0.1115, allocations: 383.1 kB / 429.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1115, allocations: 12.03 kB / 429.9 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.166e-05/0.1115, allocations: 192 / 429.9 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.644e-05/0.1115, allocations: 38.73 kB / 429.9 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.1117, allocations: 16.89 kB / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.112, allocations: 216.6 kB / 430.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.112, allocations: 11.94 kB / 430.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.112, allocations: 0 / 430.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/0.1123, allocations: 113.9 kB / 430.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.1123, allocations: 3.984 kB / 430.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.1123, allocations: 4 kB / 430.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.1123, allocations: 4 kB / 430.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.32e-05/0.1124, allocations: 19.98 kB / 430.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003306/0.1127, allocations: 274.5 kB / 430.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.1129, allocations: 67.8 kB / 430.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.687e-05/0.1129, allocations: 30.62 kB / 430.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.113, allocations: 4 kB / 430.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.113, allocations: 38.56 kB / 430.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.232e-06/0.113, allocations: 0 / 430.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002782/0.1133, allocations: 93.44 kB / 430.8 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.1133, allocations: 102.8 kB / 430.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.1135, allocations: 147.6 kB / 431 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.1135, allocations: 26.08 kB / 431.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.468e-05/0.1135, allocations: 96.12 kB / 431.2 MB, free: 412 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.468e-05/0.1136, allocations: 4 kB / 431.2 MB, free: 408 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.1136, allocations: 17.67 kB / 431.2 MB, free: 384 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1137, allocations: 322.8 kB / 431.5 MB, free: 52 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.095e-05/0.1138, allocations: 4 kB / 431.5 MB, free: 48 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.467e-05/0.1138, allocations: 35.53 kB / 431.5 MB, free: 16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.699e-05/0.1139, allocations: 47.36 kB / 431.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1139, allocations: 0 / 431.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001546/0.1141, allocations: 77.61 kB / 431.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1141, allocations: 8 kB / 431.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.1141, allocations: 0 / 431.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.1141, allocations: 3.938 kB / 431.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.848e-05/0.1142, allocations: 11.98 kB / 431.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.1142, allocations: 11.77 kB / 431.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.882e-05/0.1143, allocations: 0 / 431.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.1143, allocations: 4 kB / 431.7 MB, free: 15.82 MB / 366.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.257e-05/0.1144, allocations: 117.8 kB / 431.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.65e-05/0.1144, allocations: 65.59 kB / 431.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.142e-05/0.1145, allocations: 7.875 kB / 431.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.1145, allocations: 4 kB / 431.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.1145, allocations: 7.922 kB / 431.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.1145, allocations: 0 / 431.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001867/0.1147, allocations: 169.7 kB / 432.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1147, allocations: 0 / 432.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.061e-05/0.1147, allocations: 11.98 kB / 432.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1147, allocations: 0 / 432.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.1148, allocations: 16.06 kB / 432.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1148, allocations: 3.938 kB / 432.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1148, allocations: 3.938 kB / 432.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.115, allocations: 169.2 kB / 432.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.146e-05/0.115, allocations: 97.05 kB / 432.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.115, allocations: 4 kB / 432.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.965e-05/0.1151, allocations: 4 kB / 432.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/0.1152, allocations: 7.922 kB / 432.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.1152, allocations: 0 / 432.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.413e-05/0.1152, allocations: 114.3 kB / 432.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1152, allocations: 0 / 432.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002246/0.1155, allocations: 8 kB / 432.5 MB, free: 14.91 MB / 366.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.0004999/0.116, allocations: 0.7103 MB / 433.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000149/0.1161, allocations: 35.86 kB / 433.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1161, allocations: 0 / 433.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.88e-05/0.1162, allocations: 12.23 kB / 433.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003549/0.1165, allocations: 34.12 kB / 433.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.118, allocations: 1.395 MB / 434.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.1183, allocations: 0.6962 MB / 435.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.975e-05/0.1183, allocations: 11.98 kB / 435.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.369e-05/0.1184, allocations: 11.44 kB / 435.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1184, allocations: 3.938 kB / 435.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01838/0.1367, allocations: 1.748 MB / 437.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.787/7.924, allocations: 8.047 kB / 437.2 MB, free: 10.22 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.591977849020623]