Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.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.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001954/0.001954, allocations: 178.4 kB / 8.405 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.075/2.075, allocations: 205.3 MB / 214.1 MB, free: 1.742 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.001099/0.001098, allocations: 90.27 kB / 262.1 MB, free: 1.688 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.09779/0.09779, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.564e-05/1.562e-05, allocations: 0 / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3048, allocations: 50.36 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.4336, allocations: 76.58 MB / 0.494 GB, free: 5.738 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/0.434, allocations: 79.89 kB / 0.4941 GB, free: 5.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002773/0.4368, allocations: 0.7625 MB / 0.4948 GB, free: 4.898 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4368, allocations: 0 / 0.4948 GB, free: 4.898 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.4369, allocations: 0 / 0.4948 GB, free: 4.898 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.0004281/0.4373, allocations: 330.4 kB / 0.4951 GB, free: 4.531 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/0.4374, allocations: 12.02 kB / 0.4951 GB, free: 4.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.872e-05/0.4374, allocations: 4 kB / 0.4952 GB, free: 4.516 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.4376, allocations: 176.5 kB / 0.4953 GB, free: 4.305 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.4377, allocations: 0 / 0.4953 GB, free: 4.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.4377, allocations: 7.953 kB / 0.4953 GB, free: 4.297 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.709e-05/0.4378, allocations: 15.94 kB / 0.4953 GB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002342/0.4381, allocations: 83.33 kB / 0.4954 GB, free: 4.188 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.4381, allocations: 0 / 0.4954 GB, free: 4.188 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.4381, allocations: 4 kB / 0.4954 GB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.4381, allocations: 4 kB / 0.4954 GB, free: 4.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001416/0.4383, allocations: 130.2 kB / 0.4956 GB, free: 4.016 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.4384, allocations: 42.56 kB / 0.4956 GB, free: 3.965 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.231e-05/0.4385, allocations: 21.02 kB / 0.4956 GB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.4385, allocations: 0 / 0.4956 GB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.4385, allocations: 38.45 kB / 0.4957 GB, free: 3.895 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.423e-06/0.4385, allocations: 4 kB / 0.4957 GB, free: 3.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001602/0.4387, allocations: 45.69 kB / 0.4957 GB, free: 3.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.4388, allocations: 59.34 kB / 0.4958 GB, free: 3.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.467e-05/0.4389, allocations: 101 kB / 0.4959 GB, free: 3.664 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.4389, allocations: 25.7 kB / 0.4959 GB, free: 3.633 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.072e-05/0.439, allocations: 154.6 kB / 0.496 GB, free: 3.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.439, allocations: 7.906 kB / 0.496 GB, free: 3.473 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.187e-06/0.439, allocations: 0 / 0.496 GB, free: 3.473 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.4392, allocations: 318.8 kB / 0.4963 GB, free: 3.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.906e-05/0.4392, allocations: 8 kB / 0.4963 GB, free: 3.145 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.845e-05/0.4393, allocations: 27.38 kB / 0.4964 GB, free: 3.105 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.387e-05/0.4393, allocations: 11.94 kB / 0.4964 GB, free: 3.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.4393, allocations: 0 / 0.4964 GB, free: 3.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001242/0.4395, allocations: 57.62 kB / 0.4964 GB, free: 3.031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.4395, allocations: 4 kB / 0.4964 GB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.4395, allocations: 4 kB / 0.4964 GB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.4395, allocations: 3.953 kB / 0.4964 GB, free: 3.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.059e-05/0.4396, allocations: 8 kB / 0.4965 GB, free: 3.012 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.4397, allocations: 0 / 0.4965 GB, free: 3.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.317e-05/0.4397, allocations: 4 kB / 0.4965 GB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.4397, allocations: 0 / 0.4965 GB, free: 3.008 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: 5 (step.counter,$CLKPRE.step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.677e-05/0.4398, allocations: 113.1 kB / 0.4966 GB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.648e-05/0.4399, allocations: 45.64 kB / 0.4966 GB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.363e-05/0.44, allocations: 8.328 kB / 0.4966 GB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.44, allocations: 0 / 0.4966 GB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.44, allocations: 3.953 kB / 0.4966 GB, free: 2.828 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.44, allocations: 0 / 0.4966 GB, free: 2.828 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.4401, allocations: 142.1 kB / 0.4968 GB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4401, allocations: 0 / 0.4968 GB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.4403, allocations: 11.98 kB / 0.4968 GB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.808e-06/0.4403, allocations: 0 / 0.4968 GB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.4403, allocations: 0 / 0.4968 GB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.4403, allocations: 8 kB / 0.4968 GB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.4403, allocations: 0 / 0.4968 GB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001353/0.4405, allocations: 77.02 kB / 0.4969 GB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.817e-05/0.4405, allocations: 77.11 kB / 0.4969 GB, free: 2.445 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.4406, allocations: 4 kB / 0.4969 GB, free: 2.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.775e-05/0.4406, allocations: 3.984 kB / 0.4969 GB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.193e-06/0.4407, allocations: 4 kB / 0.4969 GB, free: 2.434 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.4407, allocations: 0 / 0.4969 GB, free: 2.434 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.518e-05/0.4407, allocations: 87.66 kB / 0.497 GB, free: 2.348 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4407, allocations: 0 / 0.497 GB, free: 2.348 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003025/0.4411, allocations: 4 kB / 0.497 GB, free: 2.344 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: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * 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.0001317/0.4412, allocations: 91.44 kB / 0.4971 GB, free: 2.242 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.4413, allocations: 23.92 kB / 0.4971 GB, free: 2.219 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4413, allocations: 0 / 0.4971 GB, free: 2.219 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.42e-07/0.4414, allocations: 0 / 0.4971 GB, free: 2.219 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.4416, allocations: 31.78 kB / 0.4972 GB, free: 2.191 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002551/0.4419, allocations: 93.58 kB / 0.4973 GB, free: 2.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.4422, allocations: 0.6846 MB / 0.4979 GB, free: 1.359 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.81e-05/0.4423, allocations: 15.42 kB / 0.4979 GB, free: 1.344 MB / 346.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4423, allocations: 3.938 kB / 0.4979 GB, free: 1.34 MB / 346.7 MB Notification: Performance of Templates: time 0.002506/0.4448, allocations: 0.6017 MB / 0.4985 GB, free: 0.7383 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches