Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.BooleanSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00114/0.00114, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001728/0.001728, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001254, allocations: 59.81 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.104, allocations: 50.54 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.004214/0.1083, allocations: 1.916 MB / 359.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00227/0.1106, allocations: 1.235 MB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001989/0.1108, allocations: 4 kB / 360.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000682/0.1115, allocations: 151.5 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005029/0.112, allocations: 159.3 kB / 361 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000566/0.1126, allocations: 175.4 kB / 361.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002926/0.1129, allocations: 199.5 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.1131, allocations: 41.64 kB / 361.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.1132, allocations: 83.62 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.1134, allocations: 75.62 kB / 361.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.95e-05/0.1134, allocations: 12 kB / 361.6 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001589/0.1136, allocations: 55.97 kB / 361.7 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.345e-05/0.1137, allocations: 51.77 kB / 361.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.176e-05/0.1138, allocations: 75.48 kB / 361.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003356/0.1141, allocations: 215.5 kB / 362 MB, free: 9.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1141, allocations: 0 / 362 MB, free: 9.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1141, allocations: 0 / 362 MB, free: 9.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.1141, allocations: 0 / 362 MB, free: 9.543 MB / 302.1 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.0008375/0.115, allocations: 0.5273 MB / 362.5 MB, free: 8.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.1151, allocations: 12.03 kB / 362.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.75e-05/0.1151, allocations: 42.69 kB / 362.6 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.185e-05/0.1152, allocations: 20.66 kB / 362.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.1155, allocations: 266.8 kB / 362.9 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.1156, allocations: 8.375 kB / 362.9 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.652e-05/0.1156, allocations: 7.938 kB / 362.9 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003666/0.116, allocations: 182.3 kB / 363.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.116, allocations: 0 / 363.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.116, allocations: 0 / 363.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.116, allocations: 4 kB / 363.1 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001109/0.1161, allocations: 35.92 kB / 363.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005384/0.1167, allocations: 379.2 kB / 363.5 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002635/0.1169, allocations: 138.4 kB / 363.6 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.722e-05/0.1171, allocations: 59.42 kB / 363.7 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.1171, allocations: 3.984 kB / 363.7 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001721/0.1173, allocations: 83.33 kB / 363.8 MB, free: 7.547 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.114e-06/0.1173, allocations: 0 / 363.8 MB, free: 7.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003932/0.1177, allocations: 157.2 kB / 363.9 MB, free: 7.387 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.1178, allocations: 170.1 kB / 364.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003064/0.1181, allocations: 282.9 kB / 364.4 MB, free: 6.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.1182, allocations: 29.7 kB / 364.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.029e-05/0.1183, allocations: 124.3 kB / 364.5 MB, free: 6.734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/0.1183, allocations: 11.98 kB / 364.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.969e-05/0.1184, allocations: 37.61 kB / 364.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1185, allocations: 326.8 kB / 364.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.742e-05/0.1186, allocations: 27.98 kB / 364.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.1187, allocations: 87.22 kB / 365 MB, free: 6.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.1189, allocations: 97.91 kB / 365.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1189, allocations: 0 / 365.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002617/0.1191, allocations: 129.3 kB / 365.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.1192, allocations: 4 kB / 365.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.1192, allocations: 4 kB / 365.2 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.1192, allocations: 0 / 365.2 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.1193, allocations: 24.12 kB / 365.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.986e-06/0.1193, allocations: 4 kB / 365.2 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.111e-05/0.1194, allocations: 19.77 kB / 365.3 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.1195, allocations: 4 kB / 365.3 MB, free: 5.906 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001692/0.1196, allocations: 150 kB / 365.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.1198, allocations: 73.44 kB / 365.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.59e-05/0.1198, allocations: 25.8 kB / 365.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.1199, allocations: 11.98 kB / 365.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.1199, allocations: 4 kB / 365.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1199, allocations: 3.938 kB / 365.5 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002773/0.1202, allocations: 237.5 kB / 365.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.1202, allocations: 0 / 365.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.197e-05/0.1202, allocations: 8 kB / 365.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.1202, allocations: 0 / 365.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.1203, allocations: 11.94 kB / 365.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1203, allocations: 0 / 365.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1203, allocations: 0 / 365.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.1206, allocations: 175.4 kB / 365.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.1207, allocations: 116.7 kB / 366.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.1208, allocations: 4 kB / 366.1 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.426e-05/0.1208, allocations: 0 / 366.1 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.258e-05/0.1209, allocations: 19.92 kB / 366.1 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.1209, allocations: 4 kB / 366.1 MB, free: 4.969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000243/0.1212, allocations: 206 kB / 366.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1212, allocations: 0 / 366.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003047/0.1215, allocations: 31.94 kB / 366.3 MB, free: 4.738 MB / 302.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: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.001755/0.1233, allocations: 1.022 MB / 367.3 MB, free: 3.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000252/0.1236, allocations: 87.78 kB / 367.4 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1236, allocations: 0 / 367.4 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.512e-05/0.1237, allocations: 28.36 kB / 367.5 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000465/0.1241, allocations: 76.78 kB / 367.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002633/0.1268, allocations: 2.035 MB / 369.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.1272, allocations: 0.732 MB / 370.3 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.1273, allocations: 29.78 kB / 370.3 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.1274, allocations: 55.42 kB / 370.4 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1274, allocations: 0 / 370.4 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1831/0.3106, allocations: 4.892 MB / 375.3 MB, free: 19.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.434/7.744, allocations: 8.734 kB / 375.3 MB, free: 19.08 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " 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,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.y,time