Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001568/0.001568, allocations: 202.8 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 226.5 MB / 245.4 MB, free: 6.402 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008178/0.0008179, allocations: 106.9 kB / 297.4 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002218/0.0002218, allocations: 4 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1969/0.1971, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0889/0.2861, allocations: 82.79 MB / 491.4 MB, free: 8.793 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002049/0.2863, allocations: 83.95 kB / 491.5 MB, free: 8.711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02477/0.3111, allocations: 9.67 MB / 0.4895 GB, free: 15.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3111, allocations: 0 / 0.4895 GB, free: 15.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.3111, allocations: 8 kB / 0.4895 GB, free: 15.04 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006222/0.3118, allocations: 0.5547 MB / 0.49 GB, free: 14.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.3118, allocations: 8.031 kB / 0.49 GB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.316e-05/0.3119, allocations: 32.59 kB / 0.49 GB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.3123, allocations: 282.7 kB / 0.4903 GB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.3123, allocations: 16.38 kB / 0.4903 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.063e-05/0.3123, allocations: 8.375 kB / 0.4903 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004647/0.3128, allocations: 296.8 kB / 0.4906 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.3128, allocations: 192 / 0.4906 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.3128, allocations: 7.922 kB / 0.4906 GB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.3128, allocations: 4 kB / 0.4906 GB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.313, allocations: 63.91 kB / 0.4907 GB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004505/0.3135, allocations: 398.3 kB / 0.4911 GB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002859/0.3138, allocations: 180 kB / 0.4912 GB, free: 13.01 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.3139, allocations: 94.47 kB / 0.4913 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.3139, allocations: 4 kB / 0.4913 GB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001203/0.3141, allocations: 71.39 kB / 0.4914 GB, free: 12.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.3141, allocations: 0 / 0.4914 GB, free: 12.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004469/0.3145, allocations: 229.5 kB / 0.4916 GB, free: 12.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.687e-05/0.3146, allocations: 160.5 kB / 0.4918 GB, free: 12.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000272/0.3149, allocations: 280.9 kB / 0.492 GB, free: 12.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.3149, allocations: 29.7 kB / 0.4921 GB, free: 12.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.393e-05/0.315, allocations: 116.7 kB / 0.4922 GB, free: 11.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.315, allocations: 35.64 kB / 0.4922 GB, free: 11.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.425e-06/0.315, allocations: 4 kB / 0.4922 GB, free: 11.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.7e-05/0.3151, allocations: 334.8 kB / 0.4925 GB, free: 11.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.025e-05/0.3152, allocations: 36.45 kB / 0.4926 GB, free: 11.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.3154, allocations: 178.1 kB / 0.4927 GB, free: 11.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/0.3156, allocations: 203.3 kB / 0.4929 GB, free: 11.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3156, allocations: 4 kB / 0.4929 GB, free: 11.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003156/0.3159, allocations: 225.4 kB / 0.4932 GB, free: 10.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.316, allocations: 8 kB / 0.4932 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.316, allocations: 4 kB / 0.4932 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.316, allocations: 4.062 kB / 0.4932 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.556e-05/0.3161, allocations: 31.86 kB / 0.4932 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.3161, allocations: 4 kB / 0.4932 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.3162, allocations: 15.91 kB / 0.4932 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.3162, allocations: 16.31 kB / 0.4932 GB, free: 10.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,sample1.u,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001299/0.3164, allocations: 167.9 kB / 0.4934 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.3165, allocations: 129.3 kB / 0.4935 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002229/0.3168, allocations: 119.3 kB / 0.4936 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.3168, allocations: 0 / 0.4936 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3168, allocations: 7.984 kB / 0.4936 GB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3168, allocations: 0 / 0.4936 GB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001883/0.317, allocations: 253.5 kB / 0.4939 GB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.317, allocations: 7.984 kB / 0.4939 GB, free: 10 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.451e-05/0.3171, allocations: 11.94 kB / 0.4939 GB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.3171, allocations: 4 kB / 0.4939 GB, free: 9.988 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.3171, allocations: 4 kB / 0.4939 GB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3171, allocations: 4 kB / 0.4939 GB, free: 9.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3171, allocations: 7.922 kB / 0.4939 GB, free: 9.973 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003152/0.3174, allocations: 234.2 kB / 0.4941 GB, free: 9.719 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.617e-05/0.3175, allocations: 116.9 kB / 0.4943 GB, free: 9.586 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.608e-05/0.3176, allocations: 11.94 kB / 0.4943 GB, free: 9.574 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.431e-05/0.3177, allocations: 11.98 kB / 0.4943 GB, free: 9.562 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.571e-05/0.3177, allocations: 4 kB / 0.4943 GB, free: 9.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.3177, allocations: 15.92 kB / 0.4943 GB, free: 9.543 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001829/0.3179, allocations: 200.5 kB / 0.4945 GB, free: 9.352 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3179, allocations: 0 / 0.4945 GB, free: 9.352 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002873/0.3182, allocations: 51.94 kB / 0.4945 GB, free: 9.301 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,sample1.u,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 0.0008258/0.3191, allocations: 440.9 kB / 0.495 GB, free: 9.008 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002818/0.3193, allocations: 148.5 kB / 0.4951 GB, free: 8.863 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3194, allocations: 256 / 0.4951 GB, free: 8.863 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.883e-05/0.3194, allocations: 31.98 kB / 0.4951 GB, free: 8.832 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.3199, allocations: 119.1 kB / 0.4952 GB, free: 8.719 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000608/0.3205, allocations: 485.6 kB / 0.4957 GB, free: 8.207 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.3208, allocations: 0.7602 MB / 0.4965 GB, free: 7.422 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.682e-05/0.3208, allocations: 27.44 kB / 0.4965 GB, free: 7.395 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3209, allocations: 0 / 0.4965 GB, free: 7.395 MB / 378.7 MB Notification: Performance of Templates: time 0.004527/0.3254, allocations: 3.287 MB / 0.4997 GB, free: 4.113 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches