Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002924/0.002929, allocations: 189.8 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.28/4.28, allocations: 205.4 MB / 222.6 MB, free: 13.86 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001862/0.001861, allocations: 106.8 kB / 270.9 MB, free: 13.38 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2034/0.2034, allocations: 12.59 MB / 331.8 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0009384/0.0009392, allocations: 14.67 kB / 392 MB, free: 54.9 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.1934, allocations: 50.37 MB / 442.3 MB, free: 11.64 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.003135/0.1966, allocations: 1.246 MB / 443.6 MB, free: 10.39 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0006022/0.1973, allocations: 135.7 kB / 443.7 MB, free: 10.25 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.1974, allocations: 4 kB / 443.7 MB, free: 10.25 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 5.641e-05/0.1975, allocations: 3.938 kB / 443.7 MB, free: 10.25 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.1977, allocations: 3.984 kB / 443.7 MB, free: 10.24 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004001/0.1981, allocations: 41.72 kB / 443.8 MB, free: 10.2 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001178/0.1983, allocations: 19.98 kB / 443.8 MB, free: 10.18 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.1984, allocations: 11.98 kB / 443.8 MB, free: 10.17 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 4.176e-05/0.1985, allocations: 15.86 kB / 443.8 MB, free: 10.16 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 6.81e-05/0.1986, allocations: 15.92 kB / 443.8 MB, free: 10.14 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 1.943e-05/0.1986, allocations: 0 / 443.8 MB, free: 10.14 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.754e-05/0.1986, allocations: 4 kB / 443.8 MB, free: 10.14 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 4.48e-05/0.1987, allocations: 7.938 kB / 443.8 MB, free: 10.13 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 4.063e-05/0.1987, allocations: 33.64 kB / 443.9 MB, free: 10.09 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.1988, allocations: 23.95 kB / 443.9 MB, free: 10.07 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1989, allocations: 4 kB / 443.9 MB, free: 10.06 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1989, allocations: 4 kB / 443.9 MB, free: 10.06 MB / 282.8 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1989, allocations: 0 / 443.9 MB, free: 10.06 MB / 282.8 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.0005662/0.1995, allocations: 356 kB / 444.3 MB, free: 9.664 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.1995, allocations: 8.031 kB / 444.3 MB, free: 9.656 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.631e-05/0.1996, allocations: 11.89 kB / 444.3 MB, free: 9.645 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.1999, allocations: 182.9 kB / 444.5 MB, free: 9.426 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.1999, allocations: 8 kB / 444.5 MB, free: 9.418 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.028e-05/0.1999, allocations: 11.95 kB / 444.5 MB, free: 9.406 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004264/0.2004, allocations: 117 kB / 444.6 MB, free: 9.273 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.2004, allocations: 0 / 444.6 MB, free: 9.273 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.2004, allocations: 0 / 444.6 MB, free: 9.273 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.2005, allocations: 0 / 444.6 MB, free: 9.273 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000143/0.2006, allocations: 27.98 kB / 444.6 MB, free: 9.246 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005424/0.206, allocations: 273.5 kB / 444.9 MB, free: 8.926 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003931/0.2065, allocations: 134.3 kB / 445 MB, free: 8.758 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.895e-05/0.2066, allocations: 4.062 kB / 445 MB, free: 8.754 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.2066, allocations: 38.5 kB / 445.1 MB, free: 8.707 MB / 282.8 MB Notification: Performance of pre-optimization done (n=4): time 4.689e-06/0.2067, allocations: 0 / 445.1 MB, free: 8.707 MB / 282.8 MB Notification: Performance of matching and sorting (n=4): time 0.0005384/0.2072, allocations: 85.8 kB / 445.1 MB, free: 8.617 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.2073, allocations: 85.09 kB / 445.2 MB, free: 8.516 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002156/0.2075, allocations: 134 kB / 445.4 MB, free: 8.371 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.2076, allocations: 25.7 kB / 445.4 MB, free: 8.34 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.905e-05/0.2077, allocations: 150.6 kB / 445.5 MB, free: 8.191 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.67e-05/0.2077, allocations: 4 kB / 445.5 MB, free: 8.188 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-06/0.2077, allocations: 0 / 445.5 MB, free: 8.188 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 8.848e-05/0.2079, allocations: 319 kB / 445.8 MB, free: 7.867 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.208, allocations: 7.984 kB / 445.9 MB, free: 7.859 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.2081, allocations: 43.41 kB / 445.9 MB, free: 7.805 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.2083, allocations: 19.89 kB / 445.9 MB, free: 7.785 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.2083, allocations: 0 / 445.9 MB, free: 7.785 MB / 282.8 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003008/0.2086, allocations: 73.55 kB / 446 MB, free: 7.707 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.2087, allocations: 4 kB / 446 MB, free: 7.703 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.2087, allocations: 4 kB / 446 MB, free: 7.699 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.699e-05/0.2087, allocations: 0 / 446 MB, free: 7.699 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.2089, allocations: 12.12 kB / 446 MB, free: 7.688 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.2089, allocations: 4 kB / 446 MB, free: 7.684 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.139e-05/0.209, allocations: 3.938 kB / 446 MB, free: 7.68 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.2091, allocations: 7.984 kB / 446 MB, free: 7.672 MB / 282.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * 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.0001987/0.2093, allocations: 125.5 kB / 446.1 MB, free: 7.539 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.2095, allocations: 53.59 kB / 446.2 MB, free: 7.48 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.095e-05/0.2096, allocations: 12.25 kB / 446.2 MB, free: 7.465 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-06/0.2096, allocations: 0 / 446.2 MB, free: 7.465 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.2096, allocations: 4 kB / 446.2 MB, free: 7.461 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.2096, allocations: 0 / 446.2 MB, free: 7.461 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003516/0.21, allocations: 169.7 kB / 446.4 MB, free: 7.246 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.21, allocations: 3.953 kB / 446.4 MB, free: 7.242 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.2102, allocations: 11.98 kB / 446.4 MB, free: 7.23 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.2102, allocations: 0 / 446.4 MB, free: 7.23 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.2103, allocations: 0 / 446.4 MB, free: 7.23 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.642e-06/0.2103, allocations: 7.938 kB / 446.4 MB, free: 7.223 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.2103, allocations: 0 / 446.4 MB, free: 7.223 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003662/0.2107, allocations: 185.9 kB / 446.6 MB, free: 7.016 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.974e-05/0.2108, allocations: 93 kB / 446.7 MB, free: 6.906 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.217e-05/0.2109, allocations: 4 kB / 446.7 MB, free: 6.902 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.2111, allocations: 0 / 446.7 MB, free: 6.902 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.011e-05/0.2112, allocations: 4 kB / 446.7 MB, free: 6.898 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.2112, allocations: 4 kB / 446.7 MB, free: 6.895 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0001247/0.2113, allocations: 107.2 kB / 446.8 MB, free: 6.789 MB / 282.8 MB Notification: Performance of sort global known variables: time 6.51e-07/0.2114, allocations: 0 / 446.8 MB, free: 6.789 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0006707/0.212, allocations: 4 kB / 446.8 MB, free: 6.785 MB / 282.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * 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.0001496/0.2122, allocations: 91.25 kB / 446.9 MB, free: 6.688 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0003099/0.2125, allocations: 32.11 kB / 446.9 MB, free: 6.656 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.2126, allocations: 8.062 kB / 446.9 MB, free: 6.648 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 8.773e-05/0.2127, allocations: 11.98 kB / 446.9 MB, free: 6.637 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007358/0.2134, allocations: 31.67 kB / 447 MB, free: 6.609 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006743/0.2141, allocations: 199.4 kB / 447.2 MB, free: 6.371 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.2144, allocations: 0.6926 MB / 447.9 MB, free: 5.652 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.691e-05/0.2145, allocations: 7.438 kB / 447.9 MB, free: 5.645 MB / 282.8 MB Notification: Performance of SimCode: time 1.874e-06/0.2145, allocations: 0 / 447.9 MB, free: 5.645 MB / 282.8 MB Notification: Performance of Templates: time 0.003927/0.2185, allocations: 0.6736 MB / 448.5 MB, free: 4.973 MB / 282.8 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches