Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.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: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001507/0.001507, allocations: 186.1 kB / 16.44 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.903/1.903, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.001094/0.001094, allocations: 85.55 kB / 270.9 MB, free: 8.371 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.1048/0.1048, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007262/0.0007264, allocations: 16 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0903/0.09107, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4337/0.5248, allocations: 77.61 MB / 0.5078 GB, free: 12.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.5252, allocations: 81.06 kB / 0.5078 GB, free: 12.85 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003179/0.5284, allocations: 0.9976 MB / 0.5088 GB, free: 12.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.5284, allocations: 0 / 0.5088 GB, free: 12.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.5284, allocations: 3.672 kB / 0.5088 GB, free: 12.5 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000311/0.5288, allocations: 345.3 kB / 0.5092 GB, free: 12.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.5288, allocations: 11.38 kB / 0.5092 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.5289, allocations: 3.906 kB / 0.5092 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.529, allocations: 183.8 kB / 0.5093 GB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.5291, allocations: 7.844 kB / 0.5094 GB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.5291, allocations: 7.891 kB / 0.5094 GB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.5293, allocations: 90.89 kB / 0.5094 GB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.5294, allocations: 3.984 kB / 0.5094 GB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.5294, allocations: 0 / 0.5094 GB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.5294, allocations: 0 / 0.5094 GB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.466e-05/0.5295, allocations: 21.64 kB / 0.5095 GB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000298/0.5298, allocations: 260.2 kB / 0.5097 GB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.627e-05/0.5299, allocations: 40.81 kB / 0.5098 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.5299, allocations: 4 kB / 0.5098 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.53, allocations: 36.78 kB / 0.5098 GB, free: 11.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.583e-06/0.53, allocations: 0 / 0.5098 GB, free: 11.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002454/0.5302, allocations: 60.8 kB / 0.5099 GB, free: 11.44 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.5303, allocations: 80.42 kB / 0.5099 GB, free: 11.35 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.5304, allocations: 119.1 kB / 0.51 GB, free: 11.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.5304, allocations: 29.48 kB / 0.5101 GB, free: 11.22 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.5305, allocations: 153.8 kB / 0.5102 GB, free: 11.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.097e-06/0.5305, allocations: 3.672 kB / 0.5102 GB, free: 11.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-06/0.5305, allocations: 0 / 0.5102 GB, free: 11.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.074e-05/0.5306, allocations: 313.6 kB / 0.5105 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.22e-05/0.5306, allocations: 7.344 kB / 0.5105 GB, free: 10.76 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.289e-05/0.5307, allocations: 25.34 kB / 0.5106 GB, free: 10.74 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.579e-05/0.5307, allocations: 6.422 kB / 0.5106 GB, free: 10.74 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5308, allocations: 3.938 kB / 0.5106 GB, free: 10.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001154/0.5309, allocations: 46.06 kB / 0.5106 GB, free: 10.7 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.5309, allocations: 7.438 kB / 0.5106 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.5309, allocations: 0 / 0.5106 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.531, allocations: 7.031 kB / 0.5106 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.75e-05/0.531, allocations: 8.531 kB / 0.5106 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.531, allocations: 0.7031 kB / 0.5106 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.882e-05/0.531, allocations: 3.125 kB / 0.5106 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-06/0.5311, allocations: 3.906 kB / 0.5106 GB, free: 10.69 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.118e-05/0.5311, allocations: 124.3 kB / 0.5108 GB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.412e-05/0.5312, allocations: 37.41 kB / 0.5108 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.465e-05/0.5313, allocations: 13.02 kB / 0.5108 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.5313, allocations: 4.031 kB / 0.5108 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/0.5313, allocations: 4.719 kB / 0.5108 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.5313, allocations: 0 / 0.5108 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001561/0.5315, allocations: 161.4 kB / 0.511 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.5315, allocations: 0 / 0.511 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.955e-06/0.5315, allocations: 0 / 0.511 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.5315, allocations: 3.953 kB / 0.511 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.5315, allocations: 11.78 kB / 0.511 GB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.5315, allocations: 3.938 kB / 0.511 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.5315, allocations: 0 / 0.511 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00016/0.5317, allocations: 166.8 kB / 0.5111 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.295e-05/0.5318, allocations: 91.47 kB / 0.5112 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.5318, allocations: 3.844 kB / 0.5112 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.698e-05/0.5319, allocations: 0 / 0.5112 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.994e-05/0.5319, allocations: 2.906 kB / 0.5112 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-06/0.532, allocations: 7.875 kB / 0.5112 GB, free: 10.06 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.605e-05/0.532, allocations: 100.1 kB / 0.5113 GB, free: 9.988 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.532, allocations: 0 / 0.5113 GB, free: 9.988 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002731/0.5323, allocations: 3.844 kB / 0.5113 GB, free: 9.988 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.949e-05/0.5324, allocations: 94.72 kB / 0.5114 GB, free: 9.895 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001388/0.5326, allocations: 18.28 kB / 0.5115 GB, free: 9.895 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.5326, allocations: 7.969 kB / 0.5115 GB, free: 9.891 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.158e-05/0.5326, allocations: 3.844 kB / 0.5115 GB, free: 9.891 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.5329, allocations: 14.53 kB / 0.5115 GB, free: 9.891 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003301/0.5333, allocations: 183 kB / 0.5117 GB, free: 9.715 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001512/0.5334, allocations: 0.6904 MB / 0.5123 GB, free: 9.016 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.75e-05/0.5335, allocations: 11.41 kB / 0.5123 GB, free: 9.008 MB / 330.7 MB Notification: Performance of SimCode: time 8.41e-07/0.5335, allocations: 0 / 0.5123 GB, free: 9.008 MB / 330.7 MB Notification: Performance of Templates: time 0.002143/0.5356, allocations: 0.6018 MB / 0.5129 GB, free: 8.797 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches