Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.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.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001445/0.001445, allocations: 178.2 kB / 8.406 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.063/2.063, allocations: 205.3 MB / 214.1 MB, free: 1.668 MB / 170.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: 86.7 kB / 262.1 MB, free: 1.617 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.102/0.102, allocations: 12.6 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.831e-05/1.837e-05, allocations: 4 kB / 378.9 MB, free: 6.883 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3042, allocations: 50.36 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1351/0.4394, allocations: 76.62 MB / 0.494 GB, free: 5.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/0.4397, allocations: 75.95 kB / 0.4941 GB, free: 5.613 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002243/0.442, allocations: 0.6961 MB / 0.4948 GB, free: 4.918 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.442, allocations: 0 / 0.4948 GB, free: 4.918 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.442, allocations: 0 / 0.4948 GB, free: 4.918 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003754/0.4424, allocations: 336 kB / 0.4951 GB, free: 4.547 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.4425, allocations: 12.03 kB / 0.4951 GB, free: 4.535 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.404e-05/0.4425, allocations: 0 / 0.4951 GB, free: 4.535 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002129/0.4427, allocations: 174.9 kB / 0.4953 GB, free: 4.324 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.4428, allocations: 7.953 kB / 0.4953 GB, free: 4.316 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.4428, allocations: 0 / 0.4953 GB, free: 4.316 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.141e-05/0.4429, allocations: 15.94 kB / 0.4953 GB, free: 4.301 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.4431, allocations: 87.33 kB / 0.4954 GB, free: 4.203 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.4432, allocations: 0 / 0.4954 GB, free: 4.203 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.4432, allocations: 0 / 0.4954 GB, free: 4.203 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.4432, allocations: 4 kB / 0.4954 GB, free: 4.199 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001484/0.4434, allocations: 134.2 kB / 0.4955 GB, free: 4.031 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.4435, allocations: 38.61 kB / 0.4956 GB, free: 3.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.173e-05/0.4435, allocations: 16.86 kB / 0.4956 GB, free: 3.965 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.4436, allocations: 4 kB / 0.4956 GB, free: 3.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.4436, allocations: 34.52 kB / 0.4956 GB, free: 3.918 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.573e-06/0.4436, allocations: 0 / 0.4956 GB, free: 3.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.000157/0.4438, allocations: 49.77 kB / 0.4957 GB, free: 3.863 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.4439, allocations: 51.41 kB / 0.4957 GB, free: 3.801 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.126e-05/0.444, allocations: 101 kB / 0.4958 GB, free: 3.695 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.444, allocations: 25.7 kB / 0.4958 GB, free: 3.664 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.332e-05/0.4441, allocations: 154.6 kB / 0.496 GB, free: 3.512 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.792e-06/0.4441, allocations: 0 / 0.496 GB, free: 3.512 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/0.4441, allocations: 0 / 0.496 GB, free: 3.512 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.4442, allocations: 318.8 kB / 0.4963 GB, free: 3.191 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.076e-05/0.4443, allocations: 0 / 0.4963 GB, free: 3.191 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.74e-05/0.4443, allocations: 23.44 kB / 0.4963 GB, free: 3.156 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.96e-05/0.4443, allocations: 15.98 kB / 0.4963 GB, free: 3.141 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4444, allocations: 0 / 0.4963 GB, free: 3.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.191e-05/0.4445, allocations: 49.48 kB / 0.4964 GB, free: 3.086 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.4445, allocations: 8 kB / 0.4964 GB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.4445, allocations: 3.938 kB / 0.4964 GB, free: 3.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.4445, allocations: 7.891 kB / 0.4964 GB, free: 3.066 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.178e-05/0.4446, allocations: 11.98 kB / 0.4964 GB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.4447, allocations: 0 / 0.4964 GB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.737e-05/0.4447, allocations: 4.375 kB / 0.4964 GB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.4447, allocations: 8.125 kB / 0.4964 GB, free: 3.043 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.687e-05/0.4448, allocations: 109 kB / 0.4965 GB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.863e-05/0.4449, allocations: 45.67 kB / 0.4966 GB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.502e-05/0.4449, allocations: 12.34 kB / 0.4966 GB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.445, allocations: 3.953 kB / 0.4966 GB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.445, allocations: 0 / 0.4966 GB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.445, allocations: 3.938 kB / 0.4966 GB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.4451, allocations: 138.2 kB / 0.4967 GB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4451, allocations: 4 kB / 0.4967 GB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.567e-05/0.4452, allocations: 11.98 kB / 0.4967 GB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.4452, allocations: 0 / 0.4967 GB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.4453, allocations: 0 / 0.4967 GB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.4453, allocations: 0 / 0.4967 GB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.4453, allocations: 0 / 0.4967 GB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001238/0.4454, allocations: 76.98 kB / 0.4968 GB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.714e-05/0.4455, allocations: 77.11 kB / 0.4969 GB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.4455, allocations: 4 kB / 0.4969 GB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.593e-05/0.4455, allocations: 4 kB / 0.4969 GB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-06/0.4456, allocations: 0 / 0.4969 GB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.707e-06/0.4456, allocations: 3.984 kB / 0.4969 GB, free: 2.473 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.842e-05/0.4456, allocations: 83.28 kB / 0.497 GB, free: 2.391 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4456, allocations: 0 / 0.497 GB, free: 2.391 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002521/0.4459, allocations: 4 kB / 0.497 GB, free: 2.387 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001224/0.446, allocations: 107 kB / 0.4971 GB, free: 2.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.1e-05/0.4461, allocations: 20 kB / 0.4971 GB, free: 2.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4462, allocations: 0 / 0.4971 GB, free: 2.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.92e-07/0.4462, allocations: 0 / 0.4971 GB, free: 2.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.4464, allocations: 19.31 kB / 0.4971 GB, free: 2.234 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002152/0.4466, allocations: 89.67 kB / 0.4972 GB, free: 2.117 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.4469, allocations: 0.6884 MB / 0.4979 GB, free: 1.402 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.715e-05/0.447, allocations: 11.44 kB / 0.4979 GB, free: 1.391 MB / 346.7 MB Notification: Performance of SimCode: time 7.01e-07/0.447, allocations: 256 / 0.4979 GB, free: 1.391 MB / 346.7 MB Notification: Performance of Templates: time 0.002223/0.4492, allocations: 0.5346 MB / 0.4984 GB, free: 0.8555 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches