Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001387/0.001388, allocations: 176.7 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.3 MB / 213.8 MB, free: 1.727 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.000829/0.0008289, allocations: 86.14 kB / 261.8 MB, free: 1.676 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.07533/0.07533, allocations: 12.6 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.706e-05/1.715e-05, allocations: 4 kB / 378.9 MB, free: 6.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2328, allocations: 50.37 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09975/0.3326, allocations: 76.99 MB / 0.4944 GB, free: 5.258 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/0.3329, allocations: 87.94 kB / 0.4945 GB, free: 5.172 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002507/0.3354, allocations: 1.11 MB / 0.4956 GB, free: 4.062 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3354, allocations: 3.938 kB / 0.4956 GB, free: 4.059 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.3355, allocations: 0 / 0.4956 GB, free: 4.059 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.0003083/0.3358, allocations: 342.4 kB / 0.4959 GB, free: 3.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.3358, allocations: 12.03 kB / 0.4959 GB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.972e-05/0.3359, allocations: 7.906 kB / 0.4959 GB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.336, allocations: 197 kB / 0.4961 GB, free: 3.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.336, allocations: 3.984 kB / 0.4961 GB, free: 3.426 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.476e-05/0.3361, allocations: 7.953 kB / 0.4961 GB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.191e-05/0.3361, allocations: 15.94 kB / 0.4962 GB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.3363, allocations: 93.06 kB / 0.4962 GB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.3363, allocations: 0 / 0.4962 GB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.3363, allocations: 7.984 kB / 0.4963 GB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.3363, allocations: 0 / 0.4963 GB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002886/0.3366, allocations: 238.3 kB / 0.4965 GB, free: 3.012 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.3368, allocations: 138.2 kB / 0.4966 GB, free: 2.84 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.729e-05/0.3369, allocations: 21.78 kB / 0.4966 GB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.67e-05/0.3369, allocations: 0 / 0.4966 GB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.3369, allocations: 34.56 kB / 0.4967 GB, free: 2.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.3369, allocations: 0 / 0.4967 GB, free: 2.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.000128/0.3371, allocations: 53.62 kB / 0.4967 GB, free: 2.711 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.3371, allocations: 81.14 kB / 0.4968 GB, free: 2.613 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.3372, allocations: 122.5 kB / 0.4969 GB, free: 2.484 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.3373, allocations: 25.7 kB / 0.4969 GB, free: 2.453 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.164e-05/0.3373, allocations: 88.05 kB / 0.497 GB, free: 2.363 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.047e-06/0.3373, allocations: 7.938 kB / 0.497 GB, free: 2.355 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.454e-06/0.3373, allocations: 0 / 0.497 GB, free: 2.355 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3375, allocations: 314.8 kB / 0.4973 GB, free: 2.039 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.3375, allocations: 4 kB / 0.4973 GB, free: 2.035 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.674e-05/0.3375, allocations: 35.42 kB / 0.4974 GB, free: 1.988 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.554e-05/0.3375, allocations: 7.938 kB / 0.4974 GB, free: 1.98 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.3375, allocations: 0 / 0.4974 GB, free: 1.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.624e-05/0.3376, allocations: 53.58 kB / 0.4974 GB, free: 1.922 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.3376, allocations: 8 kB / 0.4974 GB, free: 1.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.3376, allocations: 4.125 kB / 0.4974 GB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.926e-06/0.3376, allocations: 0 / 0.4974 GB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.298e-05/0.3377, allocations: 8 kB / 0.4974 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-06/0.3377, allocations: 4 kB / 0.4974 GB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.998e-05/0.3378, allocations: 11.92 kB / 0.4975 GB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-06/0.3378, allocations: 0 / 0.4975 GB, free: 1.887 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 5.364e-05/0.3378, allocations: 105 kB / 0.4976 GB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.935e-05/0.3379, allocations: 49.5 kB / 0.4976 GB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.832e-05/0.3379, allocations: 20.33 kB / 0.4976 GB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3379, allocations: 0 / 0.4976 GB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.3379, allocations: 0 / 0.4976 GB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-06/0.3379, allocations: 4 kB / 0.4976 GB, free: 1.695 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.3381, allocations: 142.2 kB / 0.4978 GB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.3381, allocations: 0 / 0.4978 GB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.623e-05/0.3381, allocations: 8 kB / 0.4978 GB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3381, allocations: 192 / 0.4978 GB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.3382, allocations: 7.953 kB / 0.4978 GB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.3382, allocations: 4 kB / 0.4978 GB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.3382, allocations: 7.938 kB / 0.4978 GB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001234/0.3383, allocations: 170 kB / 0.498 GB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.236e-05/0.3384, allocations: 93 kB / 0.498 GB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.3384, allocations: 3.953 kB / 0.498 GB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.745e-05/0.3384, allocations: 7.984 kB / 0.4981 GB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.529e-05/0.3385, allocations: 4 kB / 0.4981 GB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.3385, allocations: 0 / 0.4981 GB, free: 1.176 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.278e-05/0.3386, allocations: 105 kB / 0.4982 GB, free: 1.074 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3386, allocations: 0 / 0.4982 GB, free: 1.074 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001944/0.3388, allocations: 4 kB / 0.4982 GB, free: 1.07 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 8.214e-05/0.3388, allocations: 91.25 kB / 0.4982 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 5.753e-05/0.3389, allocations: 19.94 kB / 0.4983 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.3389, allocations: 0 / 0.4983 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.694e-06/0.3389, allocations: 4.25 kB / 0.4983 GB, free: 0.9492 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001893/0.3391, allocations: 23.39 kB / 0.4983 GB, free: 0.9297 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001778/0.3393, allocations: 92.84 kB / 0.4984 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.3396, allocations: 0.6963 MB / 0.4991 GB, free: 88 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.75e-05/0.3396, allocations: 0 / 0.4991 GB, free: 88 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.806e-05/0.3396, allocations: 11.44 kB / 0.4991 GB, free: 76 kB / 346.7 MB Notification: Performance of SimCode: time 1.503e-06/0.3396, allocations: 0 / 0.4991 GB, free: 76 kB / 346.7 MB Notification: Performance of Templates: time 0.001811/0.3415, allocations: 415 kB / 0.4995 GB, free: 15.67 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches