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.003133/0.003132, allocations: 184.4 kB / 16.44 MB, free: 5.711 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.749/3.749, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001824/0.001824, allocations: 93.48 kB / 270.9 MB, free: 8.367 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.2142/0.2142, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009422/0.0009429, allocations: 16 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1826, allocations: 50.37 MB / 442.4 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1): time 0.003225/0.1859, allocations: 1.199 MB / 443.6 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006572/0.1866, allocations: 128.3 kB / 443.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.1868, allocations: 4 kB / 443.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.885e-05/0.1869, allocations: 0 / 443.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001933/0.1871, allocations: 15.91 kB / 443.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004589/0.1876, allocations: 35.84 kB / 443.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001259/0.1877, allocations: 19.92 kB / 443.8 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.1879, allocations: 15.98 kB / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.497e-05/0.188, allocations: 4 kB / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.464e-05/0.1881, allocations: 15.92 kB / 443.8 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.1881, allocations: 3.938 kB / 443.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.024e-05/0.1882, allocations: 4 kB / 443.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.725e-05/0.1882, allocations: 4 kB / 443.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.052e-05/0.1883, allocations: 33.64 kB / 443.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001177/0.1884, allocations: 27.94 kB / 443.9 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1884, allocations: 0 / 443.9 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1885, allocations: 4 kB / 443.9 MB, free: 14.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.1885, allocations: 0 / 443.9 MB, free: 14.95 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006064/0.1891, allocations: 355.4 kB / 444.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.993e-05/0.1892, allocations: 12.03 kB / 444.2 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.529e-05/0.1893, allocations: 3.906 kB / 444.2 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004751/0.1898, allocations: 186.8 kB / 444.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.832e-05/0.1899, allocations: 11.98 kB / 444.4 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.192e-05/0.19, allocations: 11.89 kB / 444.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005631/0.1906, allocations: 105 kB / 444.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.1907, allocations: 7.984 kB / 444.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.1907, allocations: 0 / 444.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1907, allocations: 0 / 444.5 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.191, allocations: 16 kB / 444.6 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008834/0.192, allocations: 265.6 kB / 444.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003855/0.1924, allocations: 134.3 kB / 444.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.1925, allocations: 7.938 kB / 445 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.1925, allocations: 34.62 kB / 445 MB, free: 13.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 3.767e-06/0.1925, allocations: 0 / 445 MB, free: 13.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005012/0.1931, allocations: 69.7 kB / 445.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00257/0.1957, allocations: 85.11 kB / 445.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.196, allocations: 141.8 kB / 445.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.196, allocations: 25.7 kB / 445.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.262e-05/0.1961, allocations: 154.6 kB / 445.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.1962, allocations: 7.922 kB / 445.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.1962, allocations: 3.938 kB / 445.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.679e-05/0.1963, allocations: 314.8 kB / 445.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.1964, allocations: 11.98 kB / 445.8 MB, free: 12.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.037e-05/0.1965, allocations: 31.44 kB / 445.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.263e-05/0.1966, allocations: 15.92 kB / 445.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.1967, allocations: 3.953 kB / 445.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002675/0.1969, allocations: 61.75 kB / 445.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.197, allocations: 12 kB / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.197, allocations: 0 / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.734e-05/0.1971, allocations: 0 / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.957e-05/0.1971, allocations: 4 kB / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.1971, allocations: 0 / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.466e-05/0.1973, allocations: 4 kB / 445.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.1974, allocations: 0 / 445.9 MB, free: 12.62 MB / 298.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 (step.y,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 0.0001619/0.1975, allocations: 129.5 kB / 446 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.1977, allocations: 57.55 kB / 446.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.962e-05/0.1978, allocations: 15.91 kB / 446.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1978, allocations: 0 / 446.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.1979, allocations: 0 / 446.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.1979, allocations: 4 kB / 446.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003004/0.1982, allocations: 161.7 kB / 446.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.1982, allocations: 0 / 446.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.66e-05/0.1983, allocations: 3.953 kB / 446.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.846e-06/0.1983, allocations: 0 / 446.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.1983, allocations: 4.328 kB / 446.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.1983, allocations: 0 / 446.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.1983, allocations: 4 kB / 446.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003403/0.1987, allocations: 185.9 kB / 446.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.817e-05/0.1988, allocations: 93 kB / 446.6 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/0.1989, allocations: 4 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.199, allocations: 0 / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.1991, allocations: 8 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.1991, allocations: 0 / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001157/0.1993, allocations: 103.2 kB / 446.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.1993, allocations: 0 / 446.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005883/0.1999, allocations: 4 kB / 446.7 MB, free: 11.75 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: 4 (step.y,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.0001504/0.2001, allocations: 95.25 kB / 446.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002873/0.2004, allocations: 32.11 kB / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.2004, allocations: 0 / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.331e-05/0.2005, allocations: 4 kB / 446.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005588/0.2011, allocations: 35.84 kB / 446.8 MB, free: 11.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007575/0.2019, allocations: 199.4 kB / 447 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.2022, allocations: 0.6926 MB / 447.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.709e-05/0.2023, allocations: 7.438 kB / 447.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of SimCode: time 2.164e-06/0.2023, allocations: 0 / 447.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of Templates: time 0.004994/0.2073, allocations: 0.6639 MB / 448.4 MB, free: 9.949 MB / 298.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