Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008522/0.0008522, allocations: 173.3 kB / 16.76 MB, free: 4.93 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.275/1.275, allocations: 205 MB / 222.5 MB, free: 9.145 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.0007705/0.0007704, allocations: 90.34 kB / 270.5 MB, free: 8.668 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.07459/0.07459, allocations: 12.57 MB / 331 MB, free: 12.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003546, allocations: 12 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08936/0.08973, allocations: 49.99 MB / 441.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001342/0.09112, allocations: 1.219 MB / 442.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002983/0.09143, allocations: 127.6 kB / 443 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.435e-05/0.09152, allocations: 4 kB / 443 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.595e-05/0.0916, allocations: 3.938 kB / 443 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001096/0.09172, allocations: 7.984 kB / 443 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.09194, allocations: 35.91 kB / 443.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.384e-05/0.09201, allocations: 19.94 kB / 443.1 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.007e-05/0.0921, allocations: 15.98 kB / 443.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.488e-05/0.09214, allocations: 7.938 kB / 443.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.825e-05/0.09218, allocations: 23.84 kB / 443.2 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.404e-05/0.0922, allocations: 0 / 443.2 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.458e-06/0.09221, allocations: 0 / 443.2 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.153e-05/0.09226, allocations: 4 kB / 443.2 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.09229, allocations: 19.81 kB / 443.2 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.414e-05/0.09235, allocations: 23.95 kB / 443.2 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.09236, allocations: 0 / 443.2 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.09237, allocations: 4 kB / 443.2 MB, free: 14.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.457e-06/0.09238, allocations: 3.938 kB / 443.2 MB, free: 14.86 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003394/0.09272, allocations: 355.6 kB / 443.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.09276, allocations: 12.03 kB / 443.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/0.0928, allocations: 4.844 kB / 443.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.09294, allocations: 192 kB / 443.8 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.09296, allocations: 8.375 kB / 443.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-06/0.09297, allocations: 384 / 443.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001849/0.09317, allocations: 97.59 kB / 443.9 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.09318, allocations: 192 / 443.9 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.0932, allocations: 11.88 kB / 443.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.09321, allocations: 0 / 443.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.653e-05/0.09328, allocations: 23.98 kB / 443.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002263/0.09351, allocations: 257.8 kB / 444.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.461e-05/0.09359, allocations: 41.16 kB / 444.2 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.301e-05/0.09364, allocations: 29.77 kB / 444.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.09366, allocations: 0 / 444.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.6e-05/0.09368, allocations: 38.5 kB / 444.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.09369, allocations: 0 / 444.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001989/0.09389, allocations: 69.62 kB / 444.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.117e-05/0.09393, allocations: 81.09 kB / 444.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.534e-05/0.09403, allocations: 134.5 kB / 444.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.293e-06/0.09404, allocations: 25.7 kB / 444.6 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.769e-05/0.09407, allocations: 84.14 kB / 444.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.075e-06/0.09409, allocations: 4 kB / 444.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.813e-05/0.09411, allocations: 9.719 kB / 444.7 MB, free: 13.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.869e-05/0.09416, allocations: 323 kB / 445 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.373e-05/0.0942, allocations: 8 kB / 445 MB, free: 12.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.926e-05/0.09424, allocations: 21.7 kB / 445 MB, free: 12.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.029e-05/0.09431, allocations: 37.7 kB / 445 MB, free: 12.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.09431, allocations: 0 / 445 MB, free: 12.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.82e-05/0.09441, allocations: 61.53 kB / 445.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.09443, allocations: 4 kB / 445.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.09444, allocations: 0 / 445.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.09446, allocations: 0 / 445.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.441e-05/0.09451, allocations: 12 kB / 445.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.09453, allocations: 4 kB / 445.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.644e-05/0.09456, allocations: 11.92 kB / 445.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/0.09457, allocations: 0 / 445.1 MB, free: 12.67 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.318e-05/0.09463, allocations: 117.8 kB / 445.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.318e-05/0.09468, allocations: 33.7 kB / 445.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.449e-05/0.09471, allocations: 11.81 kB / 445.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.09471, allocations: 4 kB / 445.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.247e-06/0.09472, allocations: 7.969 kB / 445.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.09473, allocations: 3.938 kB / 445.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.09484, allocations: 173.5 kB / 445.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.09485, allocations: 0 / 445.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.51e-05/0.09489, allocations: 8 kB / 445.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.0949, allocations: 0 / 445.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.09491, allocations: 0 / 445.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.09492, allocations: 7.938 kB / 445.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.09492, allocations: 4 kB / 445.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001355/0.09506, allocations: 164.3 kB / 445.6 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.249e-05/0.09511, allocations: 85.02 kB / 445.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.09512, allocations: 3.984 kB / 445.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.36e-05/0.09518, allocations: 4 kB / 445.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.211e-05/0.09521, allocations: 0 / 445.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.09522, allocations: 4.031 kB / 445.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.101e-05/0.09526, allocations: 107.3 kB / 445.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09527, allocations: 0 / 445.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001948/0.09547, allocations: 4 kB / 445.9 MB, free: 11.84 MB / 298.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: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.052e-05/0.09553, allocations: 99.23 kB / 446 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001102/0.09565, allocations: 23.92 kB / 446 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.09566, allocations: 4.125 kB / 446 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.94e-05/0.0957, allocations: 8 kB / 446 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.09598, allocations: 23.95 kB / 446 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002338/0.09622, allocations: 178 kB / 446.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001239/0.09636, allocations: 0.6848 MB / 446.9 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.193e-05/0.09639, allocations: 11.44 kB / 446.9 MB, free: 10.74 MB / 298.7 MB Notification: Performance of SimCode: time 1.673e-06/0.09639, allocations: 0 / 446.9 MB, free: 10.74 MB / 298.7 MB Notification: Performance of Templates: time 0.001521/0.09792, allocations: 0.6345 MB / 447.5 MB, free: 10.11 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches