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.001493/0.001493, allocations: 185.7 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.908/1.908, allocations: 205.4 MB / 222.6 MB, free: 9.129 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.001145/0.001145, allocations: 85.61 kB / 270.9 MB, free: 8.379 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.09892/0.09892, allocations: 12.58 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005643/0.0005642, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08963/0.09022, allocations: 50.38 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.417/0.5072, allocations: 77.74 MB / 0.5079 GB, free: 12.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.5076, allocations: 83.06 kB / 0.508 GB, free: 12.72 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003712/0.5113, allocations: 1.113 MB / 0.5091 GB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5114, allocations: 0 / 0.5091 GB, free: 12.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.5114, allocations: 0 / 0.5091 GB, free: 12.36 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003571/0.5118, allocations: 355.2 kB / 0.5094 GB, free: 12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.5118, allocations: 15.66 kB / 0.5094 GB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.902e-05/0.5119, allocations: 7.719 kB / 0.5094 GB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.512, allocations: 183.3 kB / 0.5096 GB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.5121, allocations: 0 / 0.5096 GB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.5121, allocations: 12.78 kB / 0.5096 GB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003109/0.5124, allocations: 122.1 kB / 0.5097 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.5124, allocations: 0 / 0.5097 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.5125, allocations: 6.625 kB / 0.5097 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.5125, allocations: 0 / 0.5097 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.5126, allocations: 21.2 kB / 0.5098 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003612/0.513, allocations: 276.9 kB / 0.51 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.5132, allocations: 137 kB / 0.5102 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.5133, allocations: 7.766 kB / 0.5102 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.976e-05/0.5133, allocations: 38.5 kB / 0.5102 GB, free: 11.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.824e-06/0.5133, allocations: 0 / 0.5102 GB, free: 11.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.000327/0.5136, allocations: 82.5 kB / 0.5103 GB, free: 11.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.5137, allocations: 80.11 kB / 0.5104 GB, free: 11.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.5138, allocations: 125.1 kB / 0.5105 GB, free: 11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.337e-06/0.5139, allocations: 29.7 kB / 0.5105 GB, free: 10.96 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.162e-05/0.5139, allocations: 157 kB / 0.5106 GB, free: 10.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.191e-05/0.5139, allocations: 3.844 kB / 0.5107 GB, free: 10.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-06/0.5139, allocations: 0 / 0.5107 GB, free: 10.82 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.928e-05/0.514, allocations: 313.6 kB / 0.511 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.075e-05/0.5141, allocations: 10.94 kB / 0.511 GB, free: 10.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.835e-05/0.5142, allocations: 36.97 kB / 0.511 GB, free: 10.47 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.665e-05/0.5142, allocations: 9.75 kB / 0.511 GB, free: 10.47 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.5143, allocations: 3.953 kB / 0.511 GB, free: 10.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002127/0.5145, allocations: 77.22 kB / 0.5111 GB, free: 10.42 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.5145, allocations: 3.844 kB / 0.5111 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.5145, allocations: 3.844 kB / 0.5111 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.5145, allocations: 0 / 0.5111 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.337e-05/0.5147, allocations: 11.62 kB / 0.5111 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.5147, allocations: 0 / 0.5111 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.423e-05/0.5147, allocations: 10.23 kB / 0.5111 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.5148, allocations: 3.844 kB / 0.5111 GB, free: 10.42 MB / 330.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 () * Number of clocked 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.068e-05/0.5149, allocations: 121 kB / 0.5112 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.699e-05/0.515, allocations: 55.84 kB / 0.5113 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.158e-05/0.515, allocations: 14.62 kB / 0.5113 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.515, allocations: 0 / 0.5113 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.515, allocations: 0 / 0.5113 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.515, allocations: 7.75 kB / 0.5113 GB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001681/0.5152, allocations: 165 kB / 0.5115 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.5152, allocations: 0 / 0.5115 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.192e-05/0.5153, allocations: 11.8 kB / 0.5115 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.5153, allocations: 4 kB / 0.5115 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-06/0.5154, allocations: 3.969 kB / 0.5115 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.5154, allocations: 0 / 0.5115 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.5154, allocations: 6.844 kB / 0.5115 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00021/0.5156, allocations: 193 kB / 0.5117 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.757e-05/0.5157, allocations: 91.8 kB / 0.5118 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.5157, allocations: 2.719 kB / 0.5118 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.394e-05/0.5158, allocations: 3.844 kB / 0.5118 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.534e-05/0.5158, allocations: 0 / 0.5118 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-06/0.5159, allocations: 3.844 kB / 0.5118 GB, free: 9.773 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.212e-05/0.5159, allocations: 101.5 kB / 0.5119 GB, free: 9.699 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5159, allocations: 3.969 kB / 0.5119 GB, free: 9.699 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002815/0.5162, allocations: 7.188 kB / 0.5119 GB, free: 9.699 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: 4 (sample.u,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Number of clocked 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 8.746e-05/0.5163, allocations: 94.88 kB / 0.512 GB, free: 9.609 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001801/0.5165, allocations: 33.05 kB / 0.512 GB, free: 9.605 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5165, allocations: 3.844 kB / 0.512 GB, free: 9.605 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.595e-05/0.5166, allocations: 7.016 kB / 0.512 GB, free: 9.605 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.5169, allocations: 38.98 kB / 0.512 GB, free: 9.586 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003627/0.5173, allocations: 192 kB / 0.5122 GB, free: 9.406 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/0.5175, allocations: 0.692 MB / 0.5129 GB, free: 8.703 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.771e-05/0.5175, allocations: 7.438 kB / 0.5129 GB, free: 8.699 MB / 330.7 MB Notification: Performance of SimCode: time 7.72e-07/0.5175, allocations: 4 kB / 0.5129 GB, free: 8.695 MB / 330.7 MB Notification: Performance of Templates: time 0.002325/0.5199, allocations: 0.6748 MB / 0.5136 GB, free: 8.367 MB / 330.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