Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001039/0.001039, allocations: 177.6 kB / 16.12 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.543/1.543, allocations: 205 MB / 221.9 MB, free: 9.148 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007119/0.0007118, allocations: 101.2 kB / 269.9 MB, free: 8.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09186/0.09186, allocations: 12.58 MB / 330.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003845/0.0003845, allocations: 12 kB / 391.2 MB, free: 66.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1059, allocations: 49.98 MB / 441.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.002401/0.1083, allocations: 1.625 MB / 442.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.1096, allocations: 0.9869 MB / 443.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.1098, allocations: 8 kB / 443.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005578/0.1103, allocations: 143.6 kB / 443.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000209/0.1106, allocations: 103.6 kB / 444 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004039/0.111, allocations: 163.7 kB / 444.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.1112, allocations: 191.4 kB / 444.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.1113, allocations: 37.89 kB / 444.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.187e-05/0.1114, allocations: 75.56 kB / 444.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.937e-05/0.1115, allocations: 63.69 kB / 444.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.1115, allocations: 4 kB / 444.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.1117, allocations: 39.98 kB / 444.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.295e-05/0.1117, allocations: 43.77 kB / 444.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.205e-05/0.1118, allocations: 67.48 kB / 444.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.112, allocations: 203.3 kB / 444.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1121, allocations: 4 kB / 444.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1121, allocations: 0 / 444.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1121, allocations: 0 / 444.9 MB, free: 12.53 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.0006688/0.1128, allocations: 488.3 kB / 445.3 MB, free: 12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.1128, allocations: 11.97 kB / 445.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.877e-05/0.1128, allocations: 46.73 kB / 445.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.214e-05/0.1129, allocations: 20.66 kB / 445.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.1132, allocations: 282.7 kB / 445.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.1132, allocations: 4.375 kB / 445.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.1133, allocations: 11.94 kB / 445.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/0.1136, allocations: 169.6 kB / 445.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.1136, allocations: 4 kB / 445.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.1136, allocations: 4 kB / 445.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1137, allocations: 4 kB / 445.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.1138, allocations: 35.86 kB / 445.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004043/0.1142, allocations: 375.3 kB / 446.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.1144, allocations: 138.5 kB / 446.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.308e-05/0.1145, allocations: 59.42 kB / 446.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.1145, allocations: 3.984 kB / 446.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001381/0.1146, allocations: 79.33 kB / 446.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.1146, allocations: 0 / 446.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.000314/0.115, allocations: 157.3 kB / 446.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.934e-05/0.115, allocations: 166.2 kB / 446.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.1153, allocations: 272.9 kB / 447.2 MB, free: 9.941 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.1153, allocations: 25.7 kB / 447.2 MB, free: 9.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.196e-05/0.1153, allocations: 120.7 kB / 447.3 MB, free: 9.789 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.12e-05/0.1154, allocations: 23.83 kB / 447.3 MB, free: 9.766 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.1154, allocations: 17.72 kB / 447.3 MB, free: 9.742 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.616e-05/0.1155, allocations: 330.8 kB / 447.7 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.458e-05/0.1155, allocations: 23.98 kB / 447.7 MB, free: 9.387 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.941e-05/0.1156, allocations: 79.72 kB / 447.8 MB, free: 9.281 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.1157, allocations: 97.91 kB / 447.9 MB, free: 9.164 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1157, allocations: 0 / 447.9 MB, free: 9.164 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001792/0.1159, allocations: 133.3 kB / 448 MB, free: 9.027 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.1159, allocations: 4 kB / 448 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.116, allocations: 0 / 448 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.116, allocations: 4 kB / 448 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.016e-05/0.1161, allocations: 19.92 kB / 448 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.1161, allocations: 0 / 448 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.896e-05/0.1162, allocations: 16.44 kB / 448 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.1162, allocations: 11.94 kB / 448 MB, free: 8.973 MB / 298.7 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,sample.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.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.0001101/0.1163, allocations: 145.8 kB / 448.2 MB, free: 8.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-05/0.1164, allocations: 81.34 kB / 448.3 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.424e-05/0.1164, allocations: 25.7 kB / 448.3 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1164, allocations: 0 / 448.3 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.1165, allocations: 4 kB / 448.3 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1165, allocations: 3.938 kB / 448.3 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.1166, allocations: 233.6 kB / 448.5 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1167, allocations: 0 / 448.5 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.513e-05/0.1167, allocations: 8 kB / 448.5 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1167, allocations: 4 kB / 448.5 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.1167, allocations: 3.984 kB / 448.5 MB, free: 8.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1167, allocations: 0 / 448.5 MB, free: 8.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1167, allocations: 4 kB / 448.5 MB, free: 8.406 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000225/0.117, allocations: 179.2 kB / 448.7 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.342e-05/0.117, allocations: 108.8 kB / 448.8 MB, free: 8.078 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.273e-05/0.1171, allocations: 4 kB / 448.8 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.154e-05/0.1172, allocations: 11.94 kB / 448.8 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.037e-05/0.1172, allocations: 11.92 kB / 448.9 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.1172, allocations: 4 kB / 448.9 MB, free: 8.047 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001365/0.1174, allocations: 196.5 kB / 449 MB, free: 7.859 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1174, allocations: 4 kB / 449.1 MB, free: 7.855 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002247/0.1176, allocations: 32 kB / 449.1 MB, free: 7.824 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.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.001133/0.1188, allocations: 1.015 MB / 450.1 MB, free: 6.773 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001821/0.1189, allocations: 79.84 kB / 450.2 MB, free: 6.695 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.119, allocations: 0 / 450.2 MB, free: 6.695 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.737e-05/0.119, allocations: 20 kB / 450.2 MB, free: 6.676 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.1194, allocations: 76.88 kB / 450.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00178/0.1212, allocations: 2.069 MB / 452.3 MB, free: 4.387 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.1214, allocations: 0.7284 MB / 453.1 MB, free: 3.629 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.744e-05/0.1215, allocations: 33.75 kB / 453.1 MB, free: 3.598 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.742e-05/0.1215, allocations: 47.42 kB / 453.1 MB, free: 3.551 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.1215, allocations: 4 kB / 453.2 MB, free: 3.547 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01845/0.14, allocations: 4.393 MB / 457.5 MB, free: 15.14 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/0.1402, allocations: 267.7 kB / 457.8 MB, free: 14.78 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.761/1.902, allocations: 0 / 457.8 MB, free: 14.78 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches