Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001237/0.001237, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001451/0.001451, allocations: 219.8 kB / 24.53 MB, free: 4.004 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.5 MB / 258.2 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 55.91 kB / 378.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3385, allocations: 53.41 MB / 432 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.004481/0.3429, allocations: 1.65 MB / 433.6 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.3446, allocations: 0.592 MB / 434.2 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002018/0.3448, allocations: 7.938 kB / 434.2 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.512e-05/0.3449, allocations: 11.86 kB / 434.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.3451, allocations: 11.88 kB / 434.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004938/0.3456, allocations: 67.75 kB / 434.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.3458, allocations: 63.77 kB / 434.4 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.346, allocations: 16.22 kB / 434.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.3461, allocations: 31.86 kB / 434.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.3462, allocations: 31.84 kB / 434.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.225e-05/0.3463, allocations: 4 kB / 434.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.978e-05/0.3463, allocations: 4 kB / 434.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.605e-05/0.3464, allocations: 11.94 kB / 434.5 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.891e-05/0.3465, allocations: 35.73 kB / 434.5 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002591/0.3467, allocations: 72.03 kB / 434.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3467, allocations: 0 / 434.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3467, allocations: 0 / 434.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.629e-05/0.3468, allocations: 3.984 kB / 434.6 MB, free: 4.062 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007919/0.3475, allocations: 317.9 kB / 434.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.3476, allocations: 8.031 kB / 434.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.341e-05/0.3476, allocations: 4.188 kB / 434.9 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.93e-05/0.3477, allocations: 42.67 kB / 434.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002121/0.3479, allocations: 20.84 kB / 435 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004436/0.3483, allocations: 157.3 kB / 435.1 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.3483, allocations: 8.375 kB / 435.1 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/0.3484, allocations: 4.375 kB / 435.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004104/0.3488, allocations: 142.5 kB / 435.3 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.3488, allocations: 4 kB / 435.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.3488, allocations: 4 kB / 435.3 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.3488, allocations: 0 / 435.3 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.878e-05/0.3489, allocations: 27.92 kB / 435.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004726/0.3494, allocations: 262.5 kB / 435.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/0.3495, allocations: 90.42 kB / 435.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.598e-05/0.3496, allocations: 47.42 kB / 435.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.3497, allocations: 4 kB / 435.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.3497, allocations: 34.56 kB / 435.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.323e-06/0.3497, allocations: 0 / 435.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003375/0.35, allocations: 106 kB / 435.8 MB, free: 2.605 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.3501, allocations: 136.5 kB / 436 MB, free: 2.441 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.3503, allocations: 146.2 kB / 436.1 MB, free: 2.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.3503, allocations: 29.7 kB / 436.1 MB, free: 2.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.476e-05/0.3504, allocations: 88.14 kB / 436.2 MB, free: 2.164 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.276e-05/0.3504, allocations: 11.94 kB / 436.2 MB, free: 2.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.945e-05/0.3504, allocations: 17.72 kB / 436.3 MB, free: 2.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3506, allocations: 326.7 kB / 436.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.642e-05/0.3506, allocations: 16 kB / 436.6 MB, free: 1.785 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.772e-05/0.3507, allocations: 49.14 kB / 436.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.3508, allocations: 69.08 kB / 436.7 MB, free: 1.633 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3508, allocations: 0 / 436.7 MB, free: 1.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001556/0.351, allocations: 85.5 kB / 436.8 MB, free: 1.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.351, allocations: 12.12 kB / 436.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.351, allocations: 0 / 436.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.351, allocations: 4 kB / 436.8 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.747e-05/0.3511, allocations: 15.92 kB / 436.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.3511, allocations: 4 kB / 436.8 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.005e-05/0.3512, allocations: 7.938 kB / 436.8 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.3512, allocations: 4 kB / 436.8 MB, free: 1.496 MB / 334.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 0.000101/0.3513, allocations: 121.8 kB / 437 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.3514, allocations: 77.52 kB / 437 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.156e-05/0.3514, allocations: 15.92 kB / 437.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.3514, allocations: 4 kB / 437.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3514, allocations: 0 / 437.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3514, allocations: 0 / 437.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.3516, allocations: 156.7 kB / 437.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3516, allocations: 0 / 437.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.119e-05/0.3517, allocations: 19.92 kB / 437.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3517, allocations: 0 / 437.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.3517, allocations: 0 / 437.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.217e-06/0.3517, allocations: 12.03 kB / 437.2 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.3517, allocations: 0 / 437.2 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002185/0.3519, allocations: 198 kB / 437.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.414e-05/0.352, allocations: 23.92 kB / 437.5 MB, free: 0.793 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.352, allocations: 4 kB / 437.5 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.359e-05/0.3521, allocations: 4 kB / 437.5 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.652e-05/0.3521, allocations: 7.922 kB / 437.5 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.3521, allocations: 4 kB / 437.5 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.743e-05/0.3522, allocations: 119.9 kB / 437.6 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3522, allocations: 0 / 437.6 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.3524, allocations: 8 kB / 437.6 MB, free: 0.6484 MB / 334.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.0005557/0.353, allocations: 0.7346 MB / 438.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001686/0.3532, allocations: 56.16 kB / 438.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3532, allocations: 0 / 438.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.555e-05/0.3532, allocations: 4 kB / 438.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.3536, allocations: 46.59 kB / 438.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.3553, allocations: 1.506 MB / 439.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.3557, allocations: 0.697 MB / 440.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.765e-05/0.3557, allocations: 4.672 kB / 440.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.486e-05/0.3557, allocations: 31.42 kB / 440.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3557, allocations: 0 / 440.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02155/0.3773, allocations: 2.213 MB / 442.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.22, allocations: 14.78 kB / 442.9 MB, free: 11.29 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.859827662992757]