Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample",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.000932/0.000932, allocations: 176.4 kB / 16.12 MB, free: 5.688 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.467/1.467, allocations: 205 MB / 221.9 MB, free: 9.152 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.0007652/0.0007652, allocations: 86.31 kB / 269.9 MB, free: 8.684 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.08224/0.08224, allocations: 12.57 MB / 330.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004138/0.0004141, allocations: 8 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1085, allocations: 49.99 MB / 441.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002/0.1105, allocations: 1.594 MB / 442.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.1119, allocations: 0.9636 MB / 443.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.112, allocations: 8 kB / 443.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005435/0.1126, allocations: 139.6 kB / 443.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000224/0.1128, allocations: 103.6 kB / 444 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.1133, allocations: 159.7 kB / 444.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.1134, allocations: 179.5 kB / 444.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.1136, allocations: 37.77 kB / 444.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.789e-05/0.1137, allocations: 63.64 kB / 444.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.158e-05/0.1138, allocations: 59.7 kB / 444.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.956e-05/0.1138, allocations: 4 kB / 444.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.1139, allocations: 43.97 kB / 444.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.8e-05/0.114, allocations: 35.78 kB / 444.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.265e-05/0.1141, allocations: 63.55 kB / 444.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002026/0.1143, allocations: 191.3 kB / 444.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1143, allocations: 0 / 444.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1143, allocations: 0 / 444.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.1143, allocations: 0 / 444.8 MB, free: 12.64 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006394/0.115, allocations: 496.3 kB / 445.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.115, allocations: 8.031 kB / 445.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.871e-05/0.1151, allocations: 42.75 kB / 445.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.703e-05/0.1151, allocations: 16.75 kB / 445.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.1154, allocations: 266.7 kB / 445.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.1154, allocations: 4.375 kB / 445.6 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.1154, allocations: 11.94 kB / 445.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.1157, allocations: 150.7 kB / 445.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.1158, allocations: 0 / 445.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.1158, allocations: 4 kB / 445.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1158, allocations: 7.938 kB / 445.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.145e-05/0.1159, allocations: 31.92 kB / 445.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003759/0.1163, allocations: 358.4 kB / 446.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001926/0.1165, allocations: 111.9 kB / 446.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.538e-05/0.1166, allocations: 50.5 kB / 446.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.1166, allocations: 3.984 kB / 446.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001357/0.1167, allocations: 75.39 kB / 446.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.1167, allocations: 0 / 446.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003196/0.1171, allocations: 141.2 kB / 446.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.812e-05/0.1171, allocations: 136.8 kB / 446.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.1174, allocations: 268.9 kB / 446.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.1174, allocations: 29.7 kB / 446.9 MB, free: 10.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.977e-05/0.1175, allocations: 120.1 kB / 447.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.1175, allocations: 19.8 kB / 447.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.043e-05/0.1175, allocations: 17.72 kB / 447.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.578e-05/0.1176, allocations: 326.8 kB / 447.4 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.494e-05/0.1177, allocations: 19.98 kB / 447.4 MB, free: 9.676 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.736e-05/0.1178, allocations: 73.94 kB / 447.5 MB, free: 9.582 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000128/0.1179, allocations: 72.22 kB / 447.6 MB, free: 9.496 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1179, allocations: 4.031 kB / 447.6 MB, free: 9.492 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001837/0.1181, allocations: 113.4 kB / 447.7 MB, free: 9.375 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.1181, allocations: 4 kB / 447.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1182, allocations: 320 / 447.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.1182, allocations: 4 kB / 447.7 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.253e-05/0.1183, allocations: 19.92 kB / 447.7 MB, free: 9.348 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.1183, allocations: 4 kB / 447.7 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.602e-05/0.1184, allocations: 15.84 kB / 447.7 MB, free: 9.328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.1184, allocations: 8.125 kB / 447.7 MB, free: 9.32 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample.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 (11): * Single equations (assignments): 11 * 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.000132/0.1185, allocations: 141.8 kB / 447.9 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.226e-05/0.1186, allocations: 65.44 kB / 447.9 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.508e-05/0.1187, allocations: 25.7 kB / 448 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1187, allocations: 0 / 448 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1187, allocations: 0 / 448 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.1187, allocations: 7.938 kB / 448 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001674/0.1189, allocations: 225.6 kB / 448.2 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1189, allocations: 4.062 kB / 448.2 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.367e-05/0.1189, allocations: 7.938 kB / 448.2 MB, free: 8.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.1189, allocations: 4 kB / 448.2 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.1189, allocations: 3.984 kB / 448.2 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1189, allocations: 0 / 448.2 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.119, allocations: 4 kB / 448.2 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001902/0.1191, allocations: 162.4 kB / 448.4 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7e-05/0.1192, allocations: 104.9 kB / 448.5 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.103e-05/0.1193, allocations: 8 kB / 448.5 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.792e-05/0.1193, allocations: 4 kB / 448.5 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.202e-05/0.1194, allocations: 11.92 kB / 448.5 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.1194, allocations: 4 kB / 448.5 MB, free: 8.445 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000151/0.1196, allocations: 188.5 kB / 448.7 MB, free: 8.262 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1196, allocations: 0 / 448.7 MB, free: 8.262 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002475/0.1198, allocations: 35.98 kB / 448.7 MB, free: 8.227 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (9): * Single equations (assignments): 7 * 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.001192/0.121, allocations: 0.9996 MB / 449.7 MB, free: 7.191 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001962/0.1212, allocations: 75.78 kB / 449.8 MB, free: 7.117 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1212, allocations: 4 kB / 449.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.412e-05/0.1213, allocations: 20 kB / 449.8 MB, free: 7.094 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.1217, allocations: 60.36 kB / 449.9 MB, free: 7.035 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.1236, allocations: 1.938 MB / 451.8 MB, free: 4.977 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001781/0.1238, allocations: 0.7361 MB / 452.6 MB, free: 4.211 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.47e-05/0.1238, allocations: 29.47 kB / 452.6 MB, free: 4.184 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.93e-05/0.1239, allocations: 47.42 kB / 452.6 MB, free: 4.141 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.1239, allocations: 0 / 452.6 MB, free: 4.141 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02726/0.1512, allocations: 4.097 MB / 456.7 MB, free: 28 kB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002381/0.1515, allocations: 272.9 kB / 457 MB, free: 15.67 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/1.917, allocations: 4 kB / 457 MB, free: 15.66 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches