Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001225/0.001225, allocations: 182 kB / 15.8 MB, free: 6.336 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.57/1.57, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.000947/0.000947, allocations: 90.86 kB / 270.3 MB, free: 13.34 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.06644/0.06644, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003813/0.0003815, allocations: 11.92 kB / 392 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1013, allocations: 50.38 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1077/0.209, allocations: 77.86 MB / 0.508 GB, free: 12.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.2093, allocations: 75.97 kB / 0.5081 GB, free: 12.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003174/0.2125, allocations: 1.13 MB / 0.5092 GB, free: 11.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2125, allocations: 0 / 0.5092 GB, free: 11.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.2125, allocations: 0 / 0.5092 GB, free: 11.77 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.0003383/0.2129, allocations: 363.1 kB / 0.5096 GB, free: 11.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.2129, allocations: 8.031 kB / 0.5096 GB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.213, allocations: 11.84 kB / 0.5096 GB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.2131, allocations: 182.9 kB / 0.5098 GB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.2132, allocations: 15.94 kB / 0.5098 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.2132, allocations: 3.953 kB / 0.5098 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.2134, allocations: 117 kB / 0.5099 GB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.2134, allocations: 0 / 0.5099 GB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.2134, allocations: 4 kB / 0.5099 GB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.2135, allocations: 0 / 0.5099 GB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.739e-05/0.2135, allocations: 27.97 kB / 0.5099 GB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003574/0.2139, allocations: 273.6 kB / 0.5102 GB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002069/0.2141, allocations: 142.4 kB / 0.5103 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.2141, allocations: 0 / 0.5103 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.2142, allocations: 38.5 kB / 0.5104 GB, free: 10.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.2142, allocations: 0 / 0.5104 GB, free: 10.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.000232/0.2144, allocations: 81.67 kB / 0.5104 GB, free: 10.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.2145, allocations: 81.11 kB / 0.5105 GB, free: 10.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.2147, allocations: 117.2 kB / 0.5106 GB, free: 10.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.2147, allocations: 25.7 kB / 0.5106 GB, free: 10.06 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.721e-05/0.2147, allocations: 92.05 kB / 0.5107 GB, free: 9.965 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.459e-05/0.2148, allocations: 8.109 kB / 0.5107 GB, free: 9.957 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-06/0.2148, allocations: 0 / 0.5107 GB, free: 9.957 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2149, allocations: 318.8 kB / 0.511 GB, free: 9.637 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.893e-05/0.2149, allocations: 7.984 kB / 0.5111 GB, free: 9.629 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.493e-05/0.215, allocations: 31.44 kB / 0.5111 GB, free: 9.586 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.637e-05/0.2151, allocations: 19.98 kB / 0.5111 GB, free: 9.566 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.2151, allocations: 3.953 kB / 0.5111 GB, free: 9.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001202/0.2152, allocations: 73.47 kB / 0.5112 GB, free: 9.484 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.2152, allocations: 8 kB / 0.5112 GB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2153, allocations: 4.125 kB / 0.5112 GB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.2153, allocations: 0 / 0.5112 GB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.233e-05/0.2153, allocations: 11.98 kB / 0.5112 GB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.2154, allocations: 4 kB / 0.5112 GB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.377e-05/0.2154, allocations: 3.938 kB / 0.5112 GB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.2154, allocations: 4 kB / 0.5112 GB, free: 9.449 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: 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 9.46e-05/0.2155, allocations: 125.5 kB / 0.5113 GB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.204e-05/0.2156, allocations: 49.56 kB / 0.5114 GB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.707e-05/0.2157, allocations: 24.17 kB / 0.5114 GB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2157, allocations: 0 / 0.5114 GB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2157, allocations: 0 / 0.5114 GB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2157, allocations: 0 / 0.5114 GB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001766/0.2159, allocations: 173.6 kB / 0.5116 GB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2159, allocations: 0 / 0.5116 GB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.737e-05/0.2159, allocations: 11.95 kB / 0.5116 GB, free: 9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2159, allocations: 0 / 0.5116 GB, free: 9 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.216, allocations: 0 / 0.5116 GB, free: 9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.216, allocations: 7.984 kB / 0.5116 GB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.216, allocations: 4 kB / 0.5116 GB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002032/0.2162, allocations: 174 kB / 0.5118 GB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.216e-05/0.2163, allocations: 97 kB / 0.5118 GB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.2163, allocations: 4 kB / 0.5119 GB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.913e-05/0.2164, allocations: 7.984 kB / 0.5119 GB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.858e-05/0.2164, allocations: 4 kB / 0.5119 GB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.487e-06/0.2164, allocations: 0 / 0.5119 GB, free: 8.664 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.901e-05/0.2165, allocations: 103.3 kB / 0.512 GB, free: 8.562 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2165, allocations: 0 / 0.512 GB, free: 8.562 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002218/0.2167, allocations: 4 kB / 0.512 GB, free: 8.559 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: 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.0001043/0.2168, allocations: 95.23 kB / 0.5121 GB, free: 8.457 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.217, allocations: 35.92 kB / 0.5121 GB, free: 8.422 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.217, allocations: 4 kB / 0.5121 GB, free: 8.418 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.324e-05/0.217, allocations: 8 kB / 0.5121 GB, free: 8.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.2173, allocations: 36.03 kB / 0.5121 GB, free: 8.379 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002948/0.2176, allocations: 170.1 kB / 0.5123 GB, free: 8.18 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.2179, allocations: 0.6926 MB / 0.513 GB, free: 7.461 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.373e-05/0.2179, allocations: 3.984 kB / 0.513 GB, free: 7.457 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.139e-05/0.2179, allocations: 11.44 kB / 0.513 GB, free: 7.449 MB / 362.7 MB Notification: Performance of SimCode: time 1.794e-06/0.218, allocations: 0 / 0.513 GB, free: 7.449 MB / 362.7 MB Notification: Performance of Templates: time 0.002637/0.2206, allocations: 442.8 kB / 0.5134 GB, free: 7.02 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches