Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample",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.001012/0.001012, allocations: 175.5 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.374/1.374, 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.0007862/0.0007863, allocations: 97.39 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.07766/0.07766, allocations: 12.56 MB / 330.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003989/0.000399, allocations: 15.98 kB / 391.2 MB, free: 66.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09003/0.09044, allocations: 49.97 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.002029/0.09253, allocations: 1.606 MB / 442.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.09385, allocations: 0.952 MB / 443.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.09396, allocations: 4 kB / 443.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005246/0.0945, allocations: 139.6 kB / 443.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002103/0.09472, allocations: 107.6 kB / 443.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004134/0.09514, allocations: 155.8 kB / 444.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001621/0.09531, allocations: 179.5 kB / 444.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.09543, allocations: 33.75 kB / 444.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.934e-05/0.09551, allocations: 63.64 kB / 444.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.55e-05/0.0956, allocations: 63.69 kB / 444.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.09563, allocations: 4 kB / 444.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001/0.09574, allocations: 47.91 kB / 444.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.504e-05/0.0958, allocations: 39.84 kB / 444.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.339e-05/0.09586, allocations: 67.55 kB / 444.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.09605, allocations: 179.4 kB / 444.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.09606, allocations: 0 / 444.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.09607, allocations: 0 / 444.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.09608, allocations: 0 / 444.8 MB, free: 12.65 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.0005555/0.09664, allocations: 0.4885 MB / 445.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.09669, allocations: 12.03 kB / 445.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.263e-05/0.09672, allocations: 34.75 kB / 445.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.401e-05/0.09677, allocations: 20.75 kB / 445.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.09702, allocations: 266.8 kB / 445.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.09704, allocations: 8.375 kB / 445.6 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.09706, allocations: 7.938 kB / 445.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002631/0.09733, allocations: 142.7 kB / 445.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.09735, allocations: 8 kB / 445.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.09737, allocations: 0 / 445.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.09738, allocations: 0 / 445.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.765e-05/0.09747, allocations: 35.92 kB / 445.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003597/0.09784, allocations: 362.4 kB / 446.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001767/0.09803, allocations: 107.9 kB / 446.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.311e-05/0.0981, allocations: 42.56 kB / 446.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.09813, allocations: 8 kB / 446.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001266/0.09826, allocations: 75.33 kB / 446.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/0.09827, allocations: 0 / 446.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003003/0.09858, allocations: 145.3 kB / 446.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.09864, allocations: 136.8 kB / 446.6 MB, free: 10.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.09885, allocations: 268.9 kB / 446.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.09888, allocations: 33.64 kB / 446.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.034e-05/0.09894, allocations: 120.1 kB / 447 MB, free: 10.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.09897, allocations: 23.86 kB / 447.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.401e-05/0.099, allocations: 17.72 kB / 447.1 MB, free: 10.03 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.097e-05/0.09907, allocations: 326.8 kB / 447.4 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.085e-05/0.09912, allocations: 20 kB / 447.4 MB, free: 9.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.31e-05/0.09919, allocations: 69.98 kB / 447.5 MB, free: 9.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.732e-05/0.0993, allocations: 80.27 kB / 447.6 MB, free: 9.496 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.09931, allocations: 0 / 447.6 MB, free: 9.496 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000158/0.09947, allocations: 113.4 kB / 447.7 MB, free: 9.379 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.09949, allocations: 8 kB / 447.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.0995, allocations: 0 / 447.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.09952, allocations: 0 / 447.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.265e-05/0.0996, allocations: 15.98 kB / 447.7 MB, free: 9.355 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.09961, allocations: 0 / 447.7 MB, free: 9.355 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.19e-05/0.09968, allocations: 19.97 kB / 447.7 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.857e-06/0.0997, allocations: 8 kB / 447.7 MB, free: 9.328 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,subSample.y,subSample.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 8.961e-05/0.09979, allocations: 145.7 kB / 447.9 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.081e-05/0.09986, allocations: 61.44 kB / 447.9 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.143e-05/0.09991, allocations: 25.69 kB / 447.9 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.09992, allocations: 4 kB / 448 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.09993, allocations: 0 / 448 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.09993, allocations: 3.938 kB / 448 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001279/0.1001, allocations: 221.7 kB / 448.2 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1001, allocations: 4 kB / 448.2 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.248e-05/0.1001, allocations: 7.984 kB / 448.2 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1001, allocations: 0 / 448.2 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.1001, allocations: 8 kB / 448.2 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.1001, allocations: 320 / 448.2 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1001, allocations: 3.938 kB / 448.2 MB, free: 8.789 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00018/0.1003, allocations: 166.4 kB / 448.4 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.859e-05/0.1004, allocations: 108.9 kB / 448.5 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.1004, allocations: 0 / 448.5 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.486e-05/0.1005, allocations: 4 kB / 448.5 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.1005, allocations: 15.92 kB / 448.5 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.1006, allocations: 4 kB / 448.5 MB, free: 8.453 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000127/0.1007, allocations: 196.5 kB / 448.7 MB, free: 8.262 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1007, allocations: 4 kB / 448.7 MB, free: 8.258 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002218/0.1009, allocations: 24 kB / 448.7 MB, free: 8.234 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,subSample.y,sample.y,subSample.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.001057/0.102, allocations: 1.005 MB / 449.7 MB, free: 7.195 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001713/0.1022, allocations: 63.91 kB / 449.8 MB, free: 7.133 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1022, allocations: 0 / 449.8 MB, free: 7.133 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.986e-05/0.1022, allocations: 24 kB / 449.8 MB, free: 7.109 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.1026, allocations: 60.3 kB / 449.9 MB, free: 7.051 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001712/0.1043, allocations: 1.957 MB / 451.8 MB, free: 4.973 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000159/0.1045, allocations: 0.7244 MB / 452.5 MB, free: 4.219 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.252e-05/0.1046, allocations: 21.53 kB / 452.6 MB, free: 4.199 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.461e-05/0.1047, allocations: 51.42 kB / 452.6 MB, free: 4.152 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.1047, allocations: 4 kB / 452.6 MB, free: 4.148 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01348/0.1181, allocations: 4.046 MB / 456.7 MB, free: 88 kB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002684/0.1185, allocations: 278.1 kB / 456.9 MB, free: 15.72 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/1.934, allocations: 0 / 456.9 MB, free: 15.72 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches