Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.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.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009561/0.0009563, allocations: 177.6 kB / 8.045 MB, free: 1.027 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.494/1.494, allocations: 205.3 MB / 213.8 MB, free: 1.73 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.0007924/0.0007924, allocations: 86.61 kB / 261.8 MB, free: 1.691 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.06825/0.06825, allocations: 12.6 MB / 322.4 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.447e-05/1.448e-05, allocations: 0 / 378.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2317, allocations: 50.38 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0949/0.3266, allocations: 76.62 MB / 0.4941 GB, free: 5.621 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001852/0.3268, allocations: 75.95 kB / 0.4941 GB, free: 5.547 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001378/0.3282, allocations: 0.6918 MB / 0.4948 GB, free: 4.855 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3283, allocations: 0 / 0.4948 GB, free: 4.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.3283, allocations: 0 / 0.4948 GB, free: 4.855 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.0002754/0.3286, allocations: 328.6 kB / 0.4951 GB, free: 4.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3286, allocations: 12.03 kB / 0.4951 GB, free: 4.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.575e-05/0.3286, allocations: 0 / 0.4951 GB, free: 4.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.3288, allocations: 182.9 kB / 0.4953 GB, free: 4.262 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.3288, allocations: 11.95 kB / 0.4953 GB, free: 4.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.524e-06/0.3288, allocations: 0 / 0.4953 GB, free: 4.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.044e-05/0.3289, allocations: 19.92 kB / 0.4954 GB, free: 4.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.3291, allocations: 75.34 kB / 0.4954 GB, free: 4.145 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-06/0.3291, allocations: 0 / 0.4954 GB, free: 4.145 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.046e-06/0.3291, allocations: 0 / 0.4954 GB, free: 4.145 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3291, allocations: 4 kB / 0.4954 GB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001115/0.3293, allocations: 134.2 kB / 0.4956 GB, free: 3.973 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.344e-05/0.3294, allocations: 42.59 kB / 0.4956 GB, free: 3.922 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.388e-05/0.3294, allocations: 20.8 kB / 0.4956 GB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.3294, allocations: 3.984 kB / 0.4956 GB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.3294, allocations: 34.52 kB / 0.4957 GB, free: 3.852 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.3295, allocations: 0 / 0.4957 GB, free: 3.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001225/0.3296, allocations: 53.77 kB / 0.4957 GB, free: 3.793 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.3296, allocations: 51.41 kB / 0.4958 GB, free: 3.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.74e-05/0.3297, allocations: 97 kB / 0.4958 GB, free: 3.629 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.3297, allocations: 25.7 kB / 0.4959 GB, free: 3.598 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.258e-05/0.3298, allocations: 88.12 kB / 0.496 GB, free: 3.508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.518e-06/0.3298, allocations: 0 / 0.496 GB, free: 3.508 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-06/0.3298, allocations: 0 / 0.496 GB, free: 3.508 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.481e-05/0.3299, allocations: 314.8 kB / 0.4963 GB, free: 3.191 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.394e-06/0.3299, allocations: 4 kB / 0.4963 GB, free: 3.188 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.418e-05/0.3299, allocations: 31.47 kB / 0.4963 GB, free: 3.145 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.597e-05/0.33, allocations: 7.984 kB / 0.4963 GB, free: 3.137 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.33, allocations: 0 / 0.4963 GB, free: 3.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.122e-05/0.33, allocations: 61.55 kB / 0.4964 GB, free: 3.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.3301, allocations: 4 kB / 0.4964 GB, free: 3.066 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.3301, allocations: 0 / 0.4964 GB, free: 3.066 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3301, allocations: 7.953 kB / 0.4964 GB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.408e-05/0.3301, allocations: 11.92 kB / 0.4964 GB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.3302, allocations: 4 kB / 0.4964 GB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.83e-05/0.3302, allocations: 0 / 0.4964 GB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-06/0.3302, allocations: 0 / 0.4964 GB, free: 3.043 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: 3 (assignClock1.y,assignClock1.u,step.y) * 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.686e-05/0.3302, allocations: 105 kB / 0.4965 GB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.013e-05/0.3303, allocations: 49.75 kB / 0.4965 GB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.367e-05/0.3303, allocations: 4.344 kB / 0.4965 GB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3303, allocations: 7.891 kB / 0.4965 GB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.3303, allocations: 0 / 0.4965 GB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3304, allocations: 0 / 0.4965 GB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.641e-05/0.3304, allocations: 138.2 kB / 0.4967 GB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.3304, allocations: 0 / 0.4967 GB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.172e-05/0.3305, allocations: 11.98 kB / 0.4967 GB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.93e-05/0.3305, allocations: 0 / 0.4967 GB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.3305, allocations: 256 / 0.4967 GB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.3305, allocations: 8 kB / 0.4967 GB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3306, allocations: 4 kB / 0.4967 GB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.775e-05/0.3306, allocations: 76.98 kB / 0.4968 GB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.912e-05/0.3307, allocations: 77.11 kB / 0.4968 GB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.3307, allocations: 4 kB / 0.4968 GB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.791e-05/0.3307, allocations: 0 / 0.4968 GB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.054e-06/0.3307, allocations: 0 / 0.4968 GB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.3308, allocations: 7.938 kB / 0.4969 GB, free: 2.473 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.298e-05/0.3308, allocations: 87.27 kB / 0.4969 GB, free: 2.387 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3308, allocations: 0 / 0.4969 GB, free: 2.387 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001839/0.331, allocations: 4 kB / 0.4969 GB, free: 2.383 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: 3 (step.y,assignClock1.u,assignClock1.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 7.862e-05/0.3311, allocations: 103.1 kB / 0.497 GB, free: 2.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 5.848e-05/0.3311, allocations: 11.94 kB / 0.4971 GB, free: 2.258 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3311, allocations: 0 / 0.4971 GB, free: 2.258 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.6e-07/0.3311, allocations: 0 / 0.4971 GB, free: 2.258 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001341/0.3313, allocations: 23.59 kB / 0.4971 GB, free: 2.238 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000139/0.3314, allocations: 63.94 kB / 0.4971 GB, free: 2.152 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.3316, allocations: 0.6963 MB / 0.4978 GB, free: 1.43 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.087e-05/0.3317, allocations: 0 / 0.4978 GB, free: 1.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.722e-05/0.3317, allocations: 7.438 kB / 0.4978 GB, free: 1.422 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3317, allocations: 0 / 0.4978 GB, free: 1.422 MB / 346.7 MB Notification: Performance of Templates: time 0.00165/0.3333, allocations: 280.4 kB / 0.4981 GB, free: 1.148 MB / 346.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches