Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002211/0.002211, allocations: 178 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.084/2.084, allocations: 205.3 MB / 214.1 MB, free: 1.734 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.001627/0.001627, allocations: 86.75 kB / 262.2 MB, free: 1.68 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.1002/0.1002, allocations: 12.59 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.922e-05/1.941e-05, allocations: 0 / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3092, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.4435, allocations: 76.99 MB / 0.4944 GB, free: 5.316 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/0.4438, allocations: 71.95 kB / 0.4945 GB, free: 5.246 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004163/0.448, allocations: 1.11 MB / 0.4956 GB, free: 4.137 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4481, allocations: 0 / 0.4956 GB, free: 4.137 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.4481, allocations: 4 kB / 0.4956 GB, free: 4.133 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004115/0.4485, allocations: 350.4 kB / 0.4959 GB, free: 3.746 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.4486, allocations: 8.031 kB / 0.4959 GB, free: 3.738 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.884e-05/0.4486, allocations: 7.906 kB / 0.4959 GB, free: 3.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002373/0.4489, allocations: 182.9 kB / 0.4961 GB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.4489, allocations: 0 / 0.4961 GB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.866e-05/0.4489, allocations: 15.83 kB / 0.4961 GB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.054e-05/0.449, allocations: 12 kB / 0.4961 GB, free: 3.484 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.4493, allocations: 101 kB / 0.4962 GB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.4493, allocations: 0 / 0.4962 GB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.689e-06/0.4494, allocations: 0 / 0.4962 GB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.4494, allocations: 0 / 0.4962 GB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004103/0.4498, allocations: 250.3 kB / 0.4964 GB, free: 3.082 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.45, allocations: 130.2 kB / 0.4966 GB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.598e-05/0.4501, allocations: 21.84 kB / 0.4966 GB, free: 2.891 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.4501, allocations: 4 kB / 0.4966 GB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.4502, allocations: 46.55 kB / 0.4966 GB, free: 2.832 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.964e-06/0.4502, allocations: 0 / 0.4966 GB, free: 2.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001875/0.4504, allocations: 53.62 kB / 0.4967 GB, free: 2.773 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.4505, allocations: 81.11 kB / 0.4968 GB, free: 2.676 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.4506, allocations: 116.2 kB / 0.4969 GB, free: 2.555 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.4507, allocations: 25.7 kB / 0.4969 GB, free: 2.523 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.252e-05/0.4508, allocations: 166.5 kB / 0.4971 GB, free: 2.359 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.4508, allocations: 7.922 kB / 0.4971 GB, free: 2.352 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.247e-06/0.4508, allocations: 0 / 0.4971 GB, free: 2.352 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.4509, allocations: 310.8 kB / 0.4974 GB, free: 2.039 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.2e-05/0.451, allocations: 8 kB / 0.4974 GB, free: 2.031 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.847e-05/0.451, allocations: 23.44 kB / 0.4974 GB, free: 1.996 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.113e-05/0.4511, allocations: 11.94 kB / 0.4974 GB, free: 1.984 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.4511, allocations: 0 / 0.4974 GB, free: 1.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001129/0.4512, allocations: 53.58 kB / 0.4975 GB, free: 1.926 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.4512, allocations: 8 kB / 0.4975 GB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.4513, allocations: 0 / 0.4975 GB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.4513, allocations: 0 / 0.4975 GB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.4514, allocations: 11.98 kB / 0.4975 GB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.4514, allocations: 4.125 kB / 0.4975 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.761e-05/0.4515, allocations: 4 kB / 0.4975 GB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.4515, allocations: 4 kB / 0.4975 GB, free: 1.895 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: 4 (sample.u,sample.y,assignClock.y,assignClock.u) * 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 9.981e-05/0.4516, allocations: 109 kB / 0.4976 GB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.4518, allocations: 49.48 kB / 0.4976 GB, free: 1.727 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.448e-05/0.4518, allocations: 12.34 kB / 0.4977 GB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.4518, allocations: 0 / 0.4977 GB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4518, allocations: 0 / 0.4977 GB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.4519, allocations: 3.938 kB / 0.4977 GB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.4521, allocations: 150.2 kB / 0.4978 GB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4521, allocations: 0 / 0.4978 GB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.451e-05/0.4522, allocations: 8 kB / 0.4978 GB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.4522, allocations: 3.984 kB / 0.4978 GB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.4522, allocations: 3.953 kB / 0.4978 GB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.4523, allocations: 0 / 0.4978 GB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/0.4523, allocations: 4 kB / 0.4978 GB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.4525, allocations: 169.9 kB / 0.498 GB, free: 1.312 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.377e-05/0.4526, allocations: 97 kB / 0.4981 GB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.4526, allocations: 3.953 kB / 0.4981 GB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.732e-05/0.4527, allocations: 4 kB / 0.4981 GB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.4528, allocations: 0 / 0.4981 GB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.4528, allocations: 0 / 0.4981 GB, free: 1.191 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001055/0.4529, allocations: 105 kB / 0.4982 GB, free: 1.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4529, allocations: 0 / 0.4982 GB, free: 1.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003458/0.4533, allocations: 8 kB / 0.4982 GB, free: 1.082 MB / 346.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: 4 (sample.u,assignClock.u,assignClock.y,sample.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.0001219/0.4534, allocations: 91.25 kB / 0.4983 GB, free: 0.9844 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001113/0.4535, allocations: 23.92 kB / 0.4983 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4536, allocations: 0 / 0.4983 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.623e-05/0.4536, allocations: 0 / 0.4983 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.4539, allocations: 19.41 kB / 0.4983 GB, free: 0.9453 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003168/0.4542, allocations: 122.9 kB / 0.4984 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.4546, allocations: 0.6963 MB / 0.4991 GB, free: 68 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.101e-05/0.4546, allocations: 7.438 kB / 0.4991 GB, free: 60 kB / 346.7 MB Notification: Performance of SimCode: time 6.61e-07/0.4546, allocations: 3.938 kB / 0.4991 GB, free: 56 kB / 346.7 MB Notification: Performance of Templates: time 0.002603/0.4573, allocations: 0.6719 MB / 0.4998 GB, free: 15.38 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches