Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.002196/0.002196, allocations: 186.6 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.164/2.164, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001103/0.001102, allocations: 86.64 kB / 267.5 MB, free: 14.11 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.1003/0.1003, allocations: 12.6 MB / 328.2 MB, free: 11.17 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.26e-05/3.277e-05, allocations: 4 kB / 386 MB, free: 1.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3593, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1404/0.4998, allocations: 77.67 MB / 0.502 GB, free: 388 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.5001, allocations: 71.95 kB / 0.502 GB, free: 316 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004122/0.5043, allocations: 1.063 MB / 0.5031 GB, free: 15.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.068e-06/0.5043, allocations: 3.938 kB / 0.5031 GB, free: 15.24 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.5043, allocations: 3.938 kB / 0.5031 GB, free: 15.24 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.0004144/0.5048, allocations: 342.4 kB / 0.5034 GB, free: 14.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.5048, allocations: 8.031 kB / 0.5034 GB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.053e-05/0.5049, allocations: 7.906 kB / 0.5034 GB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.5051, allocations: 182.9 kB / 0.5036 GB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.5052, allocations: 0 / 0.5036 GB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/0.5052, allocations: 11.95 kB / 0.5036 GB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002976/0.5055, allocations: 113 kB / 0.5037 GB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.5055, allocations: 0 / 0.5037 GB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.5056, allocations: 4 kB / 0.5037 GB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.5056, allocations: 0 / 0.5037 GB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.763e-05/0.5056, allocations: 8 kB / 0.5037 GB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004284/0.5061, allocations: 261.8 kB / 0.504 GB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001858/0.5063, allocations: 138.2 kB / 0.5041 GB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.923e-05/0.5064, allocations: 29.83 kB / 0.5041 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.5064, allocations: 0 / 0.5041 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.5065, allocations: 34.5 kB / 0.5042 GB, free: 13.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.723e-06/0.5065, allocations: 4 kB / 0.5042 GB, free: 13.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002087/0.5067, allocations: 53.69 kB / 0.5042 GB, free: 13.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.5068, allocations: 81.11 kB / 0.5043 GB, free: 13.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.5069, allocations: 117 kB / 0.5044 GB, free: 13.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.507, allocations: 29.64 kB / 0.5044 GB, free: 13.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.483e-05/0.5071, allocations: 158.6 kB / 0.5046 GB, free: 13.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.508e-05/0.5071, allocations: 7.969 kB / 0.5046 GB, free: 13.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.828e-06/0.5071, allocations: 3.938 kB / 0.5046 GB, free: 13.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.5073, allocations: 314.9 kB / 0.5049 GB, free: 13.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.081e-05/0.5073, allocations: 4 kB / 0.5049 GB, free: 13.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.025e-05/0.5073, allocations: 27.44 kB / 0.5049 GB, free: 13.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.205e-05/0.5074, allocations: 4 kB / 0.5049 GB, free: 13.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.28e-05/0.5074, allocations: 7.953 kB / 0.5049 GB, free: 13.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001246/0.5075, allocations: 61.53 kB / 0.505 GB, free: 12.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.5076, allocations: 8 kB / 0.505 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.5076, allocations: 3.938 kB / 0.505 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.5076, allocations: 0 / 0.505 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.157e-05/0.5077, allocations: 4 kB / 0.505 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.5077, allocations: 0 / 0.505 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.074e-05/0.5078, allocations: 9.109 kB / 0.505 GB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.5078, allocations: 128 / 0.505 GB, free: 12.97 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 () * 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.396e-05/0.5079, allocations: 118.2 kB / 0.5051 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.508, allocations: 45.66 kB / 0.5052 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.414e-05/0.5081, allocations: 15.95 kB / 0.5052 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.5081, allocations: 0 / 0.5052 GB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.5081, allocations: 4 kB / 0.5052 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.5081, allocations: 0 / 0.5052 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002247/0.5084, allocations: 169.7 kB / 0.5054 GB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.5084, allocations: 0 / 0.5054 GB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.516e-05/0.5084, allocations: 3.953 kB / 0.5054 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.5084, allocations: 8 kB / 0.5054 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.395e-06/0.5084, allocations: 0 / 0.5054 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.5084, allocations: 0 / 0.5054 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.5084, allocations: 0 / 0.5054 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001819/0.5086, allocations: 170 kB / 0.5055 GB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.95e-05/0.5087, allocations: 93 kB / 0.5056 GB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.5088, allocations: 7.938 kB / 0.5056 GB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.742e-05/0.5089, allocations: 3.984 kB / 0.5056 GB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.5089, allocations: 4 kB / 0.5056 GB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.509, allocations: 0 / 0.5056 GB, free: 12.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.578e-05/0.5091, allocations: 105.1 kB / 0.5057 GB, free: 12.13 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5091, allocations: 0 / 0.5057 GB, free: 12.13 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000285/0.5094, allocations: 4 kB / 0.5057 GB, free: 12.12 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 () * 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.0001219/0.5095, allocations: 91.25 kB / 0.5058 GB, free: 12.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001181/0.5096, allocations: 24.17 kB / 0.5059 GB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5097, allocations: 4 kB / 0.5059 GB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.942e-05/0.5097, allocations: 4 kB / 0.5059 GB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.51, allocations: 24.09 kB / 0.5059 GB, free: 11.97 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003364/0.5104, allocations: 135.4 kB / 0.506 GB, free: 11.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003571/0.5107, allocations: 0.6968 MB / 0.5067 GB, free: 11.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.5108, allocations: 11.44 kB / 0.5067 GB, free: 11.07 MB / 362.7 MB Notification: Performance of SimCode: time 8.91e-07/0.5108, allocations: 0 / 0.5067 GB, free: 11.07 MB / 362.7 MB Notification: Performance of Templates: time 0.002654/0.5135, allocations: 0.6667 MB / 0.5074 GB, free: 10.41 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches