Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.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.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample",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.001748/0.001748, allocations: 177.7 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.579/1.579, 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.0007498/0.0007495, allocations: 88.69 kB / 269.9 MB, free: 8.68 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.07752/0.07752, allocations: 12.57 MB / 330.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004116/0.000412, allocations: 12 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09761/0.09804, allocations: 49.98 MB / 441.1 MB, free: 16.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.002053/0.1002, allocations: 1.696 MB / 442.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001286/0.1015, allocations: 1.01 MB / 443.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.1016, allocations: 11.94 kB / 443.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005283/0.1021, allocations: 143.6 kB / 444 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002117/0.1023, allocations: 103.6 kB / 444.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004899/0.1028, allocations: 195.6 kB / 444.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001905/0.103, allocations: 215.4 kB / 444.5 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.1032, allocations: 44.52 kB / 444.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.002e-05/0.1033, allocations: 79.62 kB / 444.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.993e-05/0.1034, allocations: 87.48 kB / 444.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.1034, allocations: 4 kB / 444.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.1035, allocations: 55.95 kB / 444.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.728e-05/0.1036, allocations: 39.84 kB / 444.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.496e-05/0.1037, allocations: 87.34 kB / 444.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002087/0.1039, allocations: 231.2 kB / 445.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1039, allocations: 0 / 445.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1039, allocations: 0 / 445.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1039, allocations: 0 / 445.1 MB, free: 12.3 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006035/0.1045, allocations: 0.5001 MB / 445.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1046, allocations: 12.03 kB / 445.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.7e-05/0.1046, allocations: 50.73 kB / 445.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.892e-05/0.1047, allocations: 28.66 kB / 445.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/0.1049, allocations: 274.8 kB / 446 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.105, allocations: 12.36 kB / 446 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.105, allocations: 15.94 kB / 446 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004154/0.1054, allocations: 310.2 kB / 446.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.1054, allocations: 0 / 446.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.1055, allocations: 4 kB / 446.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.1055, allocations: 8 kB / 446.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000123/0.1056, allocations: 63.91 kB / 446.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003859/0.106, allocations: 382.3 kB / 446.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002527/0.1063, allocations: 176 kB / 446.9 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.1064, allocations: 86.55 kB / 447 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.1064, allocations: 4.062 kB / 447 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001287/0.1066, allocations: 87.27 kB / 447.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.783e-06/0.1066, allocations: 3.938 kB / 447.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003912/0.107, allocations: 221.2 kB / 447.3 MB, free: 9.859 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.107, allocations: 136.5 kB / 447.5 MB, free: 9.695 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.1072, allocations: 280.8 kB / 447.7 MB, free: 9.414 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.1073, allocations: 29.7 kB / 447.8 MB, free: 9.379 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.323e-05/0.1073, allocations: 124.6 kB / 447.9 MB, free: 9.254 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/0.1074, allocations: 31.69 kB / 447.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/0.1074, allocations: 33.7 kB / 447.9 MB, free: 9.184 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.418e-05/0.1075, allocations: 330.8 kB / 448.3 MB, free: 8.852 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.072e-05/0.1076, allocations: 36.45 kB / 448.3 MB, free: 8.816 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.1077, allocations: 174 kB / 448.5 MB, free: 8.586 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001697/0.1079, allocations: 199.2 kB / 448.7 MB, free: 8.336 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1079, allocations: 8 kB / 448.7 MB, free: 8.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000263/0.1081, allocations: 217 kB / 448.9 MB, free: 8.109 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.1082, allocations: 8.531 kB / 448.9 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1082, allocations: 8 kB / 448.9 MB, free: 8.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1082, allocations: 4 kB / 448.9 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.134e-05/0.1083, allocations: 24.23 kB / 448.9 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.1083, allocations: 4 kB / 448.9 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.811e-05/0.1084, allocations: 35.77 kB / 449 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.1084, allocations: 12 kB / 449 MB, free: 8.016 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001129/0.1086, allocations: 160.8 kB / 449.1 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.1087, allocations: 129.6 kB / 449.3 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.951e-05/0.1088, allocations: 25.72 kB / 449.3 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1088, allocations: 7.984 kB / 449.3 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1088, allocations: 480 / 449.3 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1088, allocations: 7.938 kB / 449.3 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.1089, allocations: 237.5 kB / 449.5 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1089, allocations: 0 / 449.5 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.053e-05/0.109, allocations: 11.98 kB / 449.5 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.109, allocations: 3.938 kB / 449.5 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.109, allocations: 8 kB / 449.6 MB, free: 7.367 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.109, allocations: 3.938 kB / 449.6 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.109, allocations: 8.078 kB / 449.6 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002561/0.1093, allocations: 226.4 kB / 449.8 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.784e-05/0.1094, allocations: 124.7 kB / 449.9 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.1094, allocations: 4 kB / 449.9 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.457e-05/0.1095, allocations: 7.984 kB / 449.9 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/0.1095, allocations: 8 kB / 449.9 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.1095, allocations: 15.98 kB / 449.9 MB, free: 6.934 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001298/0.1097, allocations: 196.4 kB / 450.1 MB, free: 6.746 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.1097, allocations: 0 / 450.1 MB, free: 6.746 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002618/0.1099, allocations: 47.92 kB / 450.2 MB, free: 6.699 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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.00122/0.1112, allocations: 1.151 MB / 451.3 MB, free: 5.516 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002334/0.1114, allocations: 132.8 kB / 451.5 MB, free: 5.387 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1114, allocations: 4.062 kB / 451.5 MB, free: 5.383 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.301e-05/0.1115, allocations: 27.98 kB / 451.5 MB, free: 5.355 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004307/0.112, allocations: 116.2 kB / 451.6 MB, free: 5.238 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.1134, allocations: 1.302 MB / 452.9 MB, free: 3.824 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000157/0.1136, allocations: 0.7482 MB / 453.7 MB, free: 3.051 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.749e-05/0.1137, allocations: 34.41 kB / 453.7 MB, free: 3.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.981e-05/0.1137, allocations: 67.41 kB / 453.8 MB, free: 2.953 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.1137, allocations: 4 kB / 453.8 MB, free: 2.949 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0142/0.1279, allocations: 4.893 MB / 458.7 MB, free: 14.04 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002578/0.1283, allocations: 269.1 kB / 458.9 MB, free: 13.68 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/1.976, allocations: 4 kB / 458.9 MB, free: 13.68 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches