Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001454/0.001454, allocations: 181.2 kB / 15.8 MB, free: 6.34 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.617/1.617, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0008948/0.0008946, allocations: 86.81 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08006/0.08006, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005705/0.0005706, allocations: 16.73 kB / 392 MB, free: 54.85 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1369, allocations: 50.37 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1363/0.2733, allocations: 77.75 MB / 0.5079 GB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002866/0.2737, allocations: 75.95 kB / 0.508 GB, free: 13.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003055/0.2767, allocations: 1.071 MB / 0.509 GB, free: 11.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.2767, allocations: 0 / 0.509 GB, free: 11.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.846e-06/0.2768, allocations: 3.938 kB / 0.5091 GB, free: 11.94 MB / 362.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.0004212/0.2772, allocations: 347.2 kB / 0.5094 GB, free: 11.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.2772, allocations: 8.031 kB / 0.5094 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.506e-05/0.2773, allocations: 11.91 kB / 0.5094 GB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002204/0.2775, allocations: 187.5 kB / 0.5096 GB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.2776, allocations: 4 kB / 0.5096 GB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.2776, allocations: 3.953 kB / 0.5096 GB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002821/0.2779, allocations: 113 kB / 0.5097 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.2779, allocations: 3.938 kB / 0.5097 GB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.2779, allocations: 8 kB / 0.5097 GB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.2779, allocations: 0 / 0.5097 GB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.185e-05/0.278, allocations: 15.98 kB / 0.5097 GB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003795/0.2784, allocations: 269.8 kB / 0.51 GB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.2786, allocations: 134.2 kB / 0.5101 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.2786, allocations: 4.062 kB / 0.5101 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.2786, allocations: 30.56 kB / 0.5101 GB, free: 10.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 2.996e-06/0.2786, allocations: 0 / 0.5101 GB, free: 10.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002289/0.2789, allocations: 77.61 kB / 0.5102 GB, free: 10.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/0.2789, allocations: 85.05 kB / 0.5103 GB, free: 10.44 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.2791, allocations: 121 kB / 0.5104 GB, free: 10.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.2791, allocations: 25.7 kB / 0.5104 GB, free: 10.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.2792, allocations: 84.14 kB / 0.5105 GB, free: 10.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.2792, allocations: 7.906 kB / 0.5105 GB, free: 10.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-06/0.2792, allocations: 0 / 0.5105 GB, free: 10.19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.2793, allocations: 319 kB / 0.5108 GB, free: 9.867 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.444e-05/0.2794, allocations: 12 kB / 0.5108 GB, free: 9.855 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.601e-05/0.2794, allocations: 23.44 kB / 0.5109 GB, free: 9.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.943e-05/0.2795, allocations: 19.98 kB / 0.5109 GB, free: 9.801 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2795, allocations: 0 / 0.5109 GB, free: 9.801 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001054/0.2796, allocations: 65.8 kB / 0.5109 GB, free: 9.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.2796, allocations: 8 kB / 0.511 GB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2796, allocations: 0 / 0.511 GB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.2796, allocations: 0 / 0.511 GB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.431e-05/0.2797, allocations: 4 kB / 0.511 GB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.2797, allocations: 0 / 0.511 GB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.061e-05/0.2797, allocations: 8.125 kB / 0.511 GB, free: 9.711 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.2797, allocations: 7.922 kB / 0.511 GB, free: 9.703 MB / 362.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 () * Number of clocked 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 9.588e-05/0.2798, allocations: 129.8 kB / 0.5111 GB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.512e-05/0.2799, allocations: 53.48 kB / 0.5111 GB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.736e-05/0.28, allocations: 11.91 kB / 0.5112 GB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.28, allocations: 0 / 0.5112 GB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.28, allocations: 0 / 0.5112 GB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.28, allocations: 4 kB / 0.5112 GB, free: 9.488 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.2802, allocations: 165.7 kB / 0.5113 GB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2802, allocations: 7.938 kB / 0.5113 GB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.023e-06/0.2802, allocations: 0 / 0.5113 GB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.2802, allocations: 3.953 kB / 0.5113 GB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-06/0.2802, allocations: 4 kB / 0.5113 GB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.2802, allocations: 0 / 0.5113 GB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2802, allocations: 0 / 0.5113 GB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001797/0.2804, allocations: 182 kB / 0.5115 GB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.205e-05/0.2805, allocations: 89.05 kB / 0.5116 GB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.2805, allocations: 4 kB / 0.5116 GB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.505e-05/0.2806, allocations: 0 / 0.5116 GB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.641e-05/0.2806, allocations: 4 kB / 0.5116 GB, free: 8.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-06/0.2806, allocations: 4 kB / 0.5116 GB, free: 8.941 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.569e-05/0.2807, allocations: 99.25 kB / 0.5117 GB, free: 8.844 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2807, allocations: 0 / 0.5117 GB, free: 8.844 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002075/0.2809, allocations: 4 kB / 0.5117 GB, free: 8.84 MB / 362.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 () * Number of clocked 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 0.0001167/0.2811, allocations: 103.2 kB / 0.5118 GB, free: 8.727 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000123/0.2812, allocations: 27.92 kB / 0.5118 GB, free: 8.699 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2812, allocations: 0 / 0.5118 GB, free: 8.699 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.624e-05/0.2812, allocations: 4 kB / 0.5118 GB, free: 8.695 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002447/0.2815, allocations: 28.08 kB / 0.5119 GB, free: 8.672 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000327/0.2818, allocations: 157.7 kB / 0.512 GB, free: 8.484 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.2821, allocations: 0.6965 MB / 0.5127 GB, free: 7.762 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.56e-05/0.2822, allocations: 7.906 kB / 0.5127 GB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.231e-05/0.2822, allocations: 11.44 kB / 0.5127 GB, free: 7.746 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2822, allocations: 4 kB / 0.5127 GB, free: 7.742 MB / 362.7 MB Notification: Performance of Templates: time 0.002513/0.2847, allocations: 431.6 kB / 0.5131 GB, free: 7.32 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches