Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.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.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001558/0.001531, allocations: 185.1 kB / 16.44 MB, free: 5.672 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.902/1.902, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001136/0.001136, allocations: 96.98 kB / 270.9 MB, free: 8.371 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.1001/0.1001, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008865/0.0008869, allocations: 27.98 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.09586, allocations: 50.36 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4216/0.5176, allocations: 77.85 MB / 0.508 GB, free: 12.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.5179, allocations: 79.28 kB / 0.5081 GB, free: 12.78 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004299/0.5222, allocations: 1.273 MB / 0.5093 GB, free: 12.4 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5222, allocations: 3.125 kB / 0.5093 GB, free: 12.4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.5223, allocations: 0 / 0.5093 GB, free: 12.4 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003308/0.5226, allocations: 371.7 kB / 0.5097 GB, free: 12.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.5227, allocations: 11.44 kB / 0.5097 GB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.848e-05/0.5227, allocations: 7.781 kB / 0.5097 GB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.5229, allocations: 186.8 kB / 0.5099 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.5229, allocations: 3.938 kB / 0.5099 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.677e-05/0.5229, allocations: 8.297 kB / 0.5099 GB, free: 11.81 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/0.5233, allocations: 142.7 kB / 0.51 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.5233, allocations: 0 / 0.51 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.5233, allocations: 0 / 0.51 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.5233, allocations: 3.844 kB / 0.51 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.652e-05/0.5234, allocations: 24.08 kB / 0.51 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001422/0.5236, allocations: 172.8 kB / 0.5102 GB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/0.5238, allocations: 85.23 kB / 0.5103 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.331e-05/0.5238, allocations: 0 / 0.5103 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.5238, allocations: 36.91 kB / 0.5103 GB, free: 11.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.5238, allocations: 0 / 0.5103 GB, free: 11.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002487/0.5241, allocations: 101 kB / 0.5104 GB, free: 11.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.5241, allocations: 63.31 kB / 0.5105 GB, free: 11.38 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.5243, allocations: 128.9 kB / 0.5106 GB, free: 11.28 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.5243, allocations: 29.08 kB / 0.5106 GB, free: 11.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.213e-05/0.5243, allocations: 150.6 kB / 0.5108 GB, free: 11.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.52e-05/0.5244, allocations: 5.922 kB / 0.5108 GB, free: 11.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-06/0.5244, allocations: 3.781 kB / 0.5108 GB, free: 11.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.852e-05/0.5244, allocations: 314.3 kB / 0.5111 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.779e-05/0.5245, allocations: 9.156 kB / 0.5111 GB, free: 10.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.384e-05/0.5245, allocations: 60.88 kB / 0.5112 GB, free: 10.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.739e-05/0.5246, allocations: 21.08 kB / 0.5112 GB, free: 10.72 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.5246, allocations: 7.875 kB / 0.5112 GB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001545/0.5248, allocations: 88.31 kB / 0.5113 GB, free: 10.67 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.5248, allocations: 7.797 kB / 0.5113 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.5248, allocations: 7.75 kB / 0.5113 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.5249, allocations: 7.812 kB / 0.5113 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.525, allocations: 14.42 kB / 0.5113 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.525, allocations: 4.094 kB / 0.5113 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.733e-05/0.5251, allocations: 4 kB / 0.5113 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.5251, allocations: 7.406 kB / 0.5113 GB, free: 10.66 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001077/0.5252, allocations: 133.6 kB / 0.5114 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.5254, allocations: 80.69 kB / 0.5115 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.264e-05/0.5254, allocations: 15.2 kB / 0.5115 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.5254, allocations: 0 / 0.5115 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.5254, allocations: 3.75 kB / 0.5115 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.5255, allocations: 7.922 kB / 0.5115 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.68e-05/0.5256, allocations: 170.7 kB / 0.5117 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.5256, allocations: 0 / 0.5117 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.5257, allocations: 15.52 kB / 0.5117 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.5257, allocations: 0 / 0.5117 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.5257, allocations: 3.844 kB / 0.5117 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.5257, allocations: 7.891 kB / 0.5117 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5258, allocations: 0 / 0.5117 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001593/0.5259, allocations: 105 kB / 0.5118 GB, free: 10.19 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.686e-05/0.526, allocations: 100 kB / 0.5119 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.526, allocations: 0 / 0.5119 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.527e-05/0.5261, allocations: 3.25 kB / 0.5119 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.769e-06/0.5261, allocations: 3.953 kB / 0.5119 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.046e-06/0.5261, allocations: 3.875 kB / 0.5119 GB, free: 10.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.619e-05/0.5262, allocations: 111.9 kB / 0.5121 GB, free: 9.996 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5262, allocations: 0 / 0.5121 GB, free: 9.996 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002531/0.5265, allocations: 11.16 kB / 0.5121 GB, free: 9.996 MB / 330.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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 9.418e-05/0.5266, allocations: 100.5 kB / 0.5122 GB, free: 9.902 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001499/0.5267, allocations: 52.73 kB / 0.5122 GB, free: 9.887 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5267, allocations: 3.938 kB / 0.5122 GB, free: 9.883 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.222e-06/0.5268, allocations: 0 / 0.5122 GB, free: 9.883 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.5271, allocations: 51.75 kB / 0.5123 GB, free: 9.867 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003423/0.5274, allocations: 209.4 kB / 0.5125 GB, free: 9.688 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.5276, allocations: 0.7074 MB / 0.5132 GB, free: 8.973 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.888e-05/0.5276, allocations: 11.28 kB / 0.5132 GB, free: 8.965 MB / 330.7 MB Notification: Performance of SimCode: time 7.62e-07/0.5276, allocations: 0 / 0.5132 GB, free: 8.965 MB / 330.7 MB Notification: Performance of Templates: time 0.002632/0.5303, allocations: 0.862 MB / 0.514 GB, free: 8.543 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches