Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.001222/0.001222, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001167/0.001167, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9056/0.9056, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.884e-05/2.06e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.002627/0.002648, allocations: 1.906 MB / 326.5 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001607/0.004255, allocations: 1.25 MB / 327.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.004414, allocations: 7.938 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003543/0.004768, allocations: 67.55 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003971/0.005165, allocations: 139.3 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006205/0.005786, allocations: 243 kB / 328.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002747/0.00606, allocations: 195.3 kB / 328.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.006169, allocations: 25.78 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.006328, allocations: 103.7 kB / 328.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001183/0.006446, allocations: 75.8 kB / 328.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.273e-05/0.006469, allocations: 8 kB / 328.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001598/0.006629, allocations: 75.81 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.515e-05/0.006704, allocations: 55.77 kB / 328.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.841e-05/0.006762, allocations: 43.86 kB / 328.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003254/0.007088, allocations: 255.2 kB / 329 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.007092, allocations: 4 kB / 329 MB, free: 11.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.007094, allocations: 0 / 329 MB, free: 11.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.0071, allocations: 3.938 kB / 329 MB, free: 11.48 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006656/0.007766, allocations: 493.6 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.007809, allocations: 8.031 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.457e-05/0.007843, allocations: 42.69 kB / 329.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.852e-05/0.007892, allocations: 28.8 kB / 329.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.008253, allocations: 233.9 kB / 329.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.00827, allocations: 8.375 kB / 329.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.008284, allocations: 8.312 kB / 329.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003256/0.00861, allocations: 209.5 kB / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.008622, allocations: 4 kB / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.008637, allocations: 4 kB / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.008644, allocations: 0 / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.008744, allocations: 47.91 kB / 330.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000467/0.009211, allocations: 358.3 kB / 330.4 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002002/0.009411, allocations: 142.5 kB / 330.5 MB, free: 9.738 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.674e-05/0.009478, allocations: 55.42 kB / 330.6 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.009498, allocations: 3.984 kB / 330.6 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001378/0.009636, allocations: 83.31 kB / 330.7 MB, free: 9.574 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.142e-06/0.009637, allocations: 0 / 330.7 MB, free: 9.574 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003049/0.009942, allocations: 181.3 kB / 330.9 MB, free: 9.391 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.229e-05/0.01001, allocations: 170.1 kB / 331 MB, free: 9.188 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.01026, allocations: 340.2 kB / 331.4 MB, free: 8.848 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.01027, allocations: 33.64 kB / 331.4 MB, free: 8.809 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.097e-05/0.01034, allocations: 132.4 kB / 331.5 MB, free: 8.672 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/0.01037, allocations: 19.84 kB / 331.5 MB, free: 8.652 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.127e-05/0.01041, allocations: 29.66 kB / 331.6 MB, free: 8.617 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.618e-05/0.01049, allocations: 335.1 kB / 331.9 MB, free: 8.281 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.595e-05/0.01054, allocations: 27.98 kB / 331.9 MB, free: 8.254 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.65e-05/0.01062, allocations: 114.8 kB / 332 MB, free: 8.117 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.473e-05/0.0107, allocations: 57.7 kB / 332.1 MB, free: 8.055 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.0107, allocations: 256 / 332.1 MB, free: 8.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001347/0.01084, allocations: 113.5 kB / 332.2 MB, free: 7.938 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.01086, allocations: 4 kB / 332.2 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.01086, allocations: 4 kB / 332.2 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.01087, allocations: 0 / 332.2 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.56e-05/0.01095, allocations: 15.98 kB / 332.2 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.01096, allocations: 4.062 kB / 332.2 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.523e-05/0.011, allocations: 8 kB / 332.2 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.01101, allocations: 3.984 kB / 332.2 MB, free: 7.898 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001057/0.01111, allocations: 150.8 kB / 332.4 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.706e-05/0.01119, allocations: 81.48 kB / 332.5 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001854/0.01138, allocations: 127.4 kB / 332.6 MB, free: 7.523 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.01138, allocations: 4 kB / 332.6 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.01138, allocations: 96 / 332.6 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.01139, allocations: 4 kB / 332.6 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.01154, allocations: 212.6 kB / 332.8 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.01154, allocations: 4 kB / 332.8 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.634e-05/0.01159, allocations: 15.98 kB / 332.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.01159, allocations: 0 / 332.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.248e-06/0.0116, allocations: 4 kB / 332.8 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.0116, allocations: 3.938 kB / 332.8 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.0116, allocations: 7.984 kB / 332.8 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000178/0.01178, allocations: 191.4 kB / 333 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.297e-05/0.01185, allocations: 35.78 kB / 333.1 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.376e-05/0.01187, allocations: 15.98 kB / 333.1 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.592e-05/0.01191, allocations: 0 / 333.1 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.942e-05/0.01198, allocations: 15.98 kB / 333.1 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.012, allocations: 4 kB / 333.1 MB, free: 6.945 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001767/0.01218, allocations: 255 kB / 333.4 MB, free: 6.695 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01218, allocations: 0 / 333.4 MB, free: 6.695 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001958/0.01238, allocations: 35.95 kB / 333.4 MB, free: 6.66 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001124/0.0135, allocations: 1.077 MB / 334.5 MB, free: 5.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001722/0.01367, allocations: 71.84 kB / 334.5 MB, free: 5.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.01367, allocations: 0 / 334.5 MB, free: 5.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.85e-05/0.01373, allocations: 35.92 kB / 334.6 MB, free: 5.625 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.01406, allocations: 82.75 kB / 334.7 MB, free: 5.547 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001781/0.01584, allocations: 2.235 MB / 336.9 MB, free: 3.207 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000109/0.01595, allocations: 148.2 kB / 337 MB, free: 3.039 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.463e-05/0.01602, allocations: 21.64 kB / 337.1 MB, free: 3.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.537e-05/0.01611, allocations: 64.47 kB / 337.1 MB, free: 2.953 MB / 298.7 MB Notification: Performance of SimCode: time 1.042e-06/0.01611, allocations: 4 kB / 337.1 MB, free: 2.949 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02043/0.03653, allocations: 6.553 MB / 343.7 MB, free: 12.47 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.728/6.765, allocations: 9.609 kB / 343.7 MB, free: 12.46 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.48009563330561]