Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.001239/0.001239, allocations: 108.6 kB / 18.49 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.001311/0.001311, allocations: 197 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.387/1.387, allocations: 225.6 MB / 249.8 MB, free: 3.617 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.RealSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 51.92 kB / 366.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.102, allocations: 52.15 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.002832/0.1048, allocations: 1.628 MB / 420.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000879/0.1057, allocations: 0.5181 MB / 420.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.099e-05/0.1058, allocations: 4 kB / 420.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.247e-05/0.1058, allocations: 7.875 kB / 420.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.106, allocations: 15.88 kB / 420.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002743/0.1063, allocations: 59.8 kB / 420.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001351/0.1064, allocations: 63.72 kB / 420.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.1065, allocations: 8 kB / 420.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.11e-05/0.1066, allocations: 27.91 kB / 420.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.233e-05/0.1067, allocations: 31.8 kB / 420.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.1067, allocations: 4 kB / 420.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.295e-05/0.1067, allocations: 4 kB / 420.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.809e-05/0.1068, allocations: 15.92 kB / 420.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.35e-05/0.1068, allocations: 27.81 kB / 420.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.107, allocations: 75.53 kB / 421 MB, free: 10.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.107, allocations: 4 kB / 421 MB, free: 10.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.107, allocations: 0 / 421 MB, free: 10.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.107, allocations: 0 / 421 MB, free: 10.09 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005679/0.1075, allocations: 394.9 kB / 421.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1076, allocations: 8.031 kB / 421.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.203e-05/0.1076, allocations: 192 / 421.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.812e-05/0.1076, allocations: 38.75 kB / 421.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.1077, allocations: 8.891 kB / 421.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.1079, allocations: 216.1 kB / 421.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.108, allocations: 8.312 kB / 421.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.108, allocations: 4.375 kB / 421.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003271/0.1083, allocations: 142.6 kB / 421.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.1083, allocations: 0 / 421.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.1083, allocations: 4 kB / 421.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.1083, allocations: 0 / 421.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.44e-05/0.1084, allocations: 31.92 kB / 421.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003886/0.1088, allocations: 295.3 kB / 422.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001509/0.109, allocations: 82.42 kB / 422.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.544e-05/0.109, allocations: 51.48 kB / 422.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.1091, allocations: 0 / 422.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.1091, allocations: 38.5 kB / 422.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.1091, allocations: 0 / 422.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000316/0.1094, allocations: 105.8 kB / 422.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.548e-05/0.1095, allocations: 132.5 kB / 422.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.1097, allocations: 151.5 kB / 422.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.1097, allocations: 25.7 kB / 422.7 MB, free: 8.102 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.415e-05/0.1097, allocations: 92.14 kB / 422.8 MB, free: 8.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.1098, allocations: 7.938 kB / 422.8 MB, free: 8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.106e-05/0.1098, allocations: 21.94 kB / 422.8 MB, free: 7.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.1099, allocations: 326.8 kB / 423.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.639e-05/0.11, allocations: 8 kB / 423.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.156e-05/0.1101, allocations: 49.14 kB / 423.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.1102, allocations: 65.14 kB / 423.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1102, allocations: 4 kB / 423.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001628/0.1104, allocations: 89.5 kB / 423.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.1104, allocations: 4 kB / 423.3 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1104, allocations: 4 kB / 423.3 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.1104, allocations: 0 / 423.3 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.752e-05/0.1105, allocations: 19.98 kB / 423.4 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1105, allocations: 0 / 423.4 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.703e-05/0.1105, allocations: 7.938 kB / 423.4 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.1105, allocations: 4 kB / 423.4 MB, free: 7.352 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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.682e-05/0.1106, allocations: 130.5 kB / 423.5 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.1107, allocations: 73.53 kB / 423.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.382e-05/0.1108, allocations: 11.88 kB / 423.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1108, allocations: 0 / 423.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1108, allocations: 0 / 423.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.1108, allocations: 11.92 kB / 423.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.111, allocations: 177.6 kB / 423.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.111, allocations: 0 / 423.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.601e-05/0.111, allocations: 24.08 kB / 423.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-06/0.1111, allocations: 0 / 423.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.1111, allocations: 0 / 423.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.1111, allocations: 4 kB / 423.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.1111, allocations: 3.984 kB / 423.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002325/0.1113, allocations: 201.9 kB / 424 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.771e-05/0.1114, allocations: 92.98 kB / 424.1 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/0.1114, allocations: 11.98 kB / 424.1 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.387e-05/0.1115, allocations: 4 kB / 424.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.075e-05/0.1115, allocations: 0 / 424.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-06/0.1115, allocations: 4 kB / 424.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.457e-05/0.1116, allocations: 114.5 kB / 424.2 MB, free: 6.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1116, allocations: 0 / 424.2 MB, free: 6.395 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002367/0.1118, allocations: 8 kB / 424.2 MB, free: 6.387 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.0005609/0.1124, allocations: 0.7383 MB / 425 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001778/0.1126, allocations: 51.97 kB / 425 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1126, allocations: 0 / 425 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.196e-05/0.1126, allocations: 11.92 kB / 425 MB, free: 5.551 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004121/0.113, allocations: 38.44 kB / 425.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.1146, allocations: 1.492 MB / 426.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.1149, allocations: 0.7078 MB / 427.3 MB, free: 3.164 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.446e-05/0.1149, allocations: 8.656 kB / 427.3 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.197e-05/0.115, allocations: 19.44 kB / 427.3 MB, free: 3.137 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.115, allocations: 3.938 kB / 427.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01748/0.1325, allocations: 2.09 MB / 429.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.808/7.941, allocations: 14.03 kB / 429.4 MB, free: 1.172 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.u,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 10.352724662981927]