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/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/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.002376/0.002376, allocations: 180.5 kB / 17.46 MB, free: 4.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.934/2.934, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.001007/0.001007, allocations: 88.55 kB / 272 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1628/0.1628, allocations: 12.2 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007453/0.0007458, allocations: 20 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.1892, allocations: 50.3 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6106/0.7999, allocations: 77.59 MB / 0.5084 GB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003905/0.8003, allocations: 81.02 kB / 0.5085 GB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005747/0.8061, allocations: 1.564 MB / 0.51 GB, free: 12.64 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.059e-06/0.8062, allocations: 0 / 0.51 GB, free: 12.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.032e-05/0.8062, allocations: 7.969 kB / 0.51 GB, free: 12.63 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.000557/0.8068, allocations: 348.6 kB / 0.5104 GB, free: 12.26 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.856e-05/0.8069, allocations: 11.38 kB / 0.5104 GB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.284e-05/0.807, allocations: 15.47 kB / 0.5104 GB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003242/0.8073, allocations: 187.2 kB / 0.5106 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.8074, allocations: 3.375 kB / 0.5106 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.8074, allocations: 384 / 0.5106 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003801/0.8078, allocations: 97.31 kB / 0.5107 GB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.8078, allocations: 4.188 kB / 0.5107 GB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.8079, allocations: 6.938 kB / 0.5107 GB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.8079, allocations: 0 / 0.5107 GB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.416e-05/0.808, allocations: 13.94 kB / 0.5107 GB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000452/0.8084, allocations: 266.2 kB / 0.5109 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.8085, allocations: 44.88 kB / 0.511 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.283e-05/0.8086, allocations: 20.39 kB / 0.511 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.8087, allocations: 3.969 kB / 0.511 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.8087, allocations: 30.56 kB / 0.511 GB, free: 11.58 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.282e-06/0.8087, allocations: 0 / 0.511 GB, free: 11.58 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003023/0.809, allocations: 62.41 kB / 0.5111 GB, free: 11.54 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.081e-05/0.8091, allocations: 80.98 kB / 0.5112 GB, free: 11.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.8092, allocations: 130 kB / 0.5113 GB, free: 11.35 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.8093, allocations: 29.58 kB / 0.5113 GB, free: 11.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.643e-05/0.8093, allocations: 80.14 kB / 0.5114 GB, free: 11.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.501e-05/0.8093, allocations: 3.906 kB / 0.5114 GB, free: 11.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-06/0.8094, allocations: 4.25 kB / 0.5114 GB, free: 11.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.8095, allocations: 320.6 kB / 0.5117 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.733e-05/0.8095, allocations: 3.812 kB / 0.5117 GB, free: 10.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.941e-05/0.8096, allocations: 20.02 kB / 0.5117 GB, free: 10.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.648e-05/0.8096, allocations: 25.41 kB / 0.5118 GB, free: 10.88 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.8097, allocations: 3.844 kB / 0.5118 GB, free: 10.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001251/0.8098, allocations: 53.89 kB / 0.5118 GB, free: 10.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.8098, allocations: 7.688 kB / 0.5118 GB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.8099, allocations: 0 / 0.5118 GB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/0.8099, allocations: 3.047 kB / 0.5118 GB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.248e-05/0.8099, allocations: 0.875 kB / 0.5118 GB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.8099, allocations: 0 / 0.5118 GB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.795e-05/0.81, allocations: 7.906 kB / 0.5118 GB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.81, allocations: 0 / 0.5118 GB, free: 10.83 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 0.0001192/0.8101, allocations: 128 kB / 0.5119 GB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.307e-05/0.8102, allocations: 37.42 kB / 0.512 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.604e-05/0.8103, allocations: 11.34 kB / 0.512 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-06/0.8103, allocations: 6.938 kB / 0.512 GB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.8103, allocations: 4 kB / 0.512 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.8103, allocations: 0 / 0.512 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001967/0.8105, allocations: 163.2 kB / 0.5122 GB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.8105, allocations: 11.84 kB / 0.5122 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.014e-06/0.8106, allocations: 0 / 0.5122 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.8106, allocations: 0 / 0.5122 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.8106, allocations: 0 / 0.5122 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.8106, allocations: 0 / 0.5122 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.8106, allocations: 3.844 kB / 0.5122 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.8108, allocations: 155.3 kB / 0.5123 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.472e-05/0.8109, allocations: 88.88 kB / 0.5124 GB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.8109, allocations: 0 / 0.5124 GB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.899e-05/0.811, allocations: 15.52 kB / 0.5124 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.811, allocations: 0 / 0.5124 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.8111, allocations: 0 / 0.5124 GB, free: 10.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.516e-05/0.8111, allocations: 107.1 kB / 0.5125 GB, free: 10.12 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.8112, allocations: 0 / 0.5125 GB, free: 10.12 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000361/0.8115, allocations: 7.688 kB / 0.5125 GB, free: 10.12 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 0.0001081/0.8117, allocations: 96.03 kB / 0.5126 GB, free: 10.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001423/0.8118, allocations: 15.61 kB / 0.5126 GB, free: 10.03 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.8118, allocations: 0 / 0.5126 GB, free: 10.03 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.687e-05/0.8119, allocations: 7.812 kB / 0.5126 GB, free: 10.03 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004845/0.8124, allocations: 20.11 kB / 0.5127 GB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004611/0.8129, allocations: 185.2 kB / 0.5128 GB, free: 9.832 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.8131, allocations: 0.687 MB / 0.5135 GB, free: 9.129 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.727e-05/0.8132, allocations: 11.41 kB / 0.5135 GB, free: 9.121 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.8132, allocations: 0 / 0.5135 GB, free: 9.121 MB / 330.7 MB Notification: Performance of Templates: time 0.002698/0.8159, allocations: 0.6064 MB / 0.5141 GB, free: 8.824 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