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.001488/0.001488, allocations: 186.2 kB / 16.44 MB, free: 5.672 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.884/1.884, allocations: 205.4 MB / 222.6 MB, free: 9.121 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.001101/0.001101, allocations: 93.41 kB / 270.9 MB, free: 8.371 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.09899/0.09899, allocations: 12.6 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007441/0.0007442, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08678/0.08757, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.415/0.5026, allocations: 77.74 MB / 0.5079 GB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.5029, allocations: 77.56 kB / 0.508 GB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003522/0.5065, allocations: 1.07 MB / 0.509 GB, free: 12.4 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5065, allocations: 0 / 0.509 GB, free: 12.4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.5065, allocations: 0 / 0.509 GB, free: 12.4 MB / 330.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.0003713/0.5069, allocations: 354.6 kB / 0.5094 GB, free: 12.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.507, allocations: 11.53 kB / 0.5094 GB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/0.507, allocations: 7.047 kB / 0.5094 GB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.5072, allocations: 186.7 kB / 0.5096 GB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.5073, allocations: 7.938 kB / 0.5096 GB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.5073, allocations: 7.891 kB / 0.5096 GB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000285/0.5076, allocations: 104.1 kB / 0.5097 GB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.5076, allocations: 3.938 kB / 0.5097 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.5076, allocations: 3.438 kB / 0.5097 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.5076, allocations: 4 kB / 0.5097 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.835e-05/0.5077, allocations: 17.14 kB / 0.5097 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003121/0.5081, allocations: 260.1 kB / 0.5099 GB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.5083, allocations: 145.7 kB / 0.5101 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.5083, allocations: 3.844 kB / 0.5101 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.691e-05/0.5083, allocations: 31.69 kB / 0.5101 GB, free: 11.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.114e-06/0.5083, allocations: 0 / 0.5101 GB, free: 11.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.000272/0.5086, allocations: 74.83 kB / 0.5102 GB, free: 11.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.5087, allocations: 84.05 kB / 0.5103 GB, free: 11.15 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.5088, allocations: 119.5 kB / 0.5104 GB, free: 11.06 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.5088, allocations: 29.64 kB / 0.5104 GB, free: 11.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.629e-05/0.5089, allocations: 154.1 kB / 0.5106 GB, free: 10.88 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.5089, allocations: 6.578 kB / 0.5106 GB, free: 10.87 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-06/0.5089, allocations: 0 / 0.5106 GB, free: 10.87 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.584e-05/0.509, allocations: 314.6 kB / 0.5109 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.403e-05/0.509, allocations: 11.69 kB / 0.5109 GB, free: 10.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.222e-05/0.5091, allocations: 29.38 kB / 0.5109 GB, free: 10.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.302e-05/0.5091, allocations: 10.41 kB / 0.5109 GB, free: 10.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.5092, allocations: 3.938 kB / 0.5109 GB, free: 10.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001438/0.5093, allocations: 70.3 kB / 0.511 GB, free: 10.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.5093, allocations: 3.875 kB / 0.511 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.5094, allocations: 6.797 kB / 0.511 GB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.5094, allocations: 3.969 kB / 0.511 GB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.57e-05/0.5094, allocations: 0 / 0.511 GB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.5094, allocations: 0.8594 kB / 0.511 GB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.627e-05/0.5095, allocations: 3.844 kB / 0.511 GB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-06/0.5095, allocations: 0 / 0.511 GB, free: 10.47 MB / 330.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 7.619e-05/0.5096, allocations: 129.4 kB / 0.5111 GB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.326e-05/0.5097, allocations: 55.22 kB / 0.5112 GB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.552e-05/0.5097, allocations: 7.844 kB / 0.5112 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.5097, allocations: 8.594 kB / 0.5112 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.5097, allocations: 0 / 0.5112 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.5098, allocations: 2.812 kB / 0.5112 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001596/0.5099, allocations: 166 kB / 0.5114 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.5099, allocations: 0 / 0.5114 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.105e-05/0.51, allocations: 7.969 kB / 0.5114 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.51, allocations: 10.25 kB / 0.5114 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.51, allocations: 0 / 0.5114 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.51, allocations: 0 / 0.5114 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.51, allocations: 3.844 kB / 0.5114 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.5102, allocations: 165.2 kB / 0.5115 GB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.782e-05/0.5103, allocations: 100.8 kB / 0.5116 GB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.5103, allocations: 7.781 kB / 0.5116 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.729e-05/0.5104, allocations: 0 / 0.5116 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.364e-05/0.5104, allocations: 3.312 kB / 0.5116 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.5104, allocations: 3.875 kB / 0.5116 GB, free: 9.836 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.576e-05/0.5105, allocations: 102.5 kB / 0.5117 GB, free: 9.758 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5105, allocations: 0 / 0.5117 GB, free: 9.758 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000277/0.5108, allocations: 11.22 kB / 0.5118 GB, free: 9.758 MB / 330.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 8.182e-05/0.5109, allocations: 94.97 kB / 0.5118 GB, free: 9.664 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001508/0.5111, allocations: 25.61 kB / 0.5119 GB, free: 9.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.5111, allocations: 0 / 0.5119 GB, free: 9.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.219e-05/0.5111, allocations: 10.45 kB / 0.5119 GB, free: 9.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.5114, allocations: 27.27 kB / 0.5119 GB, free: 9.652 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003404/0.5118, allocations: 193.6 kB / 0.5121 GB, free: 9.469 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.5119, allocations: 0.6931 MB / 0.5128 GB, free: 8.773 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.712e-05/0.512, allocations: 10.48 kB / 0.5128 GB, free: 8.77 MB / 330.7 MB Notification: Performance of SimCode: time 7.51e-07/0.512, allocations: 0 / 0.5128 GB, free: 8.77 MB / 330.7 MB Notification: Performance of Templates: time 0.00223/0.5142, allocations: 0.668 MB / 0.5134 GB, free: 8.457 MB / 330.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