Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.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.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002393/0.002392, allocations: 181 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.22/2.22, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001113/0.001113, allocations: 90.64 kB / 267.6 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.1005/0.1005, allocations: 12.6 MB / 328.2 MB, free: 11.17 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.98e-05/4.002e-05, allocations: 4 kB / 386 MB, free: 1.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2949, allocations: 50.37 MB / 436.3 MB, free: 14.17 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1327/0.4277, allocations: 78.12 MB / 0.5024 GB, free: 15.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.428, allocations: 75.94 kB / 0.5025 GB, free: 15.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005282/0.4333, allocations: 1.38 MB / 0.5038 GB, free: 14.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.4334, allocations: 0 / 0.5038 GB, free: 14.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.4334, allocations: 4 kB / 0.5038 GB, free: 14.48 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004901/0.4339, allocations: 354.4 kB / 0.5042 GB, free: 14.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.434, allocations: 12.03 kB / 0.5042 GB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.68e-05/0.434, allocations: 11.81 kB / 0.5042 GB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.4343, allocations: 194.8 kB / 0.5044 GB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.4343, allocations: 8 kB / 0.5044 GB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.279e-05/0.4344, allocations: 7.953 kB / 0.5044 GB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003925/0.4348, allocations: 153.9 kB / 0.5045 GB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.4348, allocations: 0 / 0.5045 GB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.4348, allocations: 11.94 kB / 0.5046 GB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.4348, allocations: 0 / 0.5046 GB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.912e-05/0.4349, allocations: 24 kB / 0.5046 GB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005232/0.4355, allocations: 377.8 kB / 0.5049 GB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000277/0.4358, allocations: 109 kB / 0.505 GB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.4359, allocations: 54.73 kB / 0.5051 GB, free: 13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.4359, allocations: 4.141 kB / 0.5051 GB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.436, allocations: 42.5 kB / 0.5051 GB, free: 12.94 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 2.034e-06/0.436, allocations: 0 / 0.5051 GB, free: 12.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.000282/0.4363, allocations: 89.52 kB / 0.5052 GB, free: 12.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.127e-05/0.4364, allocations: 110.8 kB / 0.5053 GB, free: 12.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.4365, allocations: 126.4 kB / 0.5054 GB, free: 12.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.4366, allocations: 25.7 kB / 0.5055 GB, free: 12.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.487e-05/0.4366, allocations: 158.6 kB / 0.5056 GB, free: 12.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.4367, allocations: 15.84 kB / 0.5056 GB, free: 12.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.863e-06/0.4367, allocations: 0 / 0.5056 GB, free: 12.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.4368, allocations: 330.8 kB / 0.506 GB, free: 12.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.493e-05/0.4369, allocations: 11.94 kB / 0.506 GB, free: 12.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.892e-05/0.437, allocations: 67.67 kB / 0.506 GB, free: 11.94 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.815e-05/0.437, allocations: 19.98 kB / 0.506 GB, free: 11.92 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.4371, allocations: 0 / 0.506 GB, free: 11.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001999/0.4373, allocations: 89.72 kB / 0.5061 GB, free: 11.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.4373, allocations: 8.625 kB / 0.5061 GB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.4373, allocations: 3.984 kB / 0.5061 GB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.4373, allocations: 4 kB / 0.5062 GB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.4375, allocations: 23.92 kB / 0.5062 GB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.4375, allocations: 4 kB / 0.5062 GB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.678e-05/0.4376, allocations: 11.91 kB / 0.5062 GB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.4376, allocations: 11.98 kB / 0.5062 GB, free: 11.76 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001057/0.4378, allocations: 116.8 kB / 0.5063 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.4379, allocations: 73.53 kB / 0.5064 GB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.394e-05/0.438, allocations: 16.62 kB / 0.5064 GB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.438, allocations: 0 / 0.5064 GB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.4381, allocations: 4 kB / 0.5064 GB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4381, allocations: 0 / 0.5064 GB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002944/0.4384, allocations: 185.5 kB / 0.5066 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4384, allocations: 0 / 0.5066 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.4385, allocations: 23.98 kB / 0.5066 GB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.4386, allocations: 4 kB / 0.5066 GB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.4386, allocations: 4 kB / 0.5066 GB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.4386, allocations: 0 / 0.5066 GB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.4386, allocations: 7.938 kB / 0.5066 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004174/0.439, allocations: 327.8 kB / 0.5069 GB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.352e-05/0.4391, allocations: 100.9 kB / 0.507 GB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.4392, allocations: 4 kB / 0.507 GB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.4393, allocations: 4 kB / 0.507 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.788e-05/0.4394, allocations: 8.266 kB / 0.507 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.4394, allocations: 0 / 0.507 GB, free: 10.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001029/0.4395, allocations: 111.2 kB / 0.5071 GB, free: 10.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.434e-06/0.4395, allocations: 3.938 kB / 0.5072 GB, free: 10.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000352/0.4399, allocations: 19.94 kB / 0.5072 GB, free: 10.65 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.0001158/0.44, allocations: 91.25 kB / 0.5073 GB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001724/0.4402, allocations: 59.81 kB / 0.5073 GB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4402, allocations: 0 / 0.5073 GB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.594e-05/0.4402, allocations: 4 kB / 0.5073 GB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000388/0.4406, allocations: 36.7 kB / 0.5074 GB, free: 10.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000455/0.4411, allocations: 167.7 kB / 0.5075 GB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004571/0.4416, allocations: 0.716 MB / 0.5082 GB, free: 9.516 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.979e-05/0.4417, allocations: 11.44 kB / 0.5082 GB, free: 9.508 MB / 362.7 MB Notification: Performance of SimCode: time 1.804e-06/0.4417, allocations: 0 / 0.5082 GB, free: 9.508 MB / 362.7 MB Notification: Performance of Templates: time 0.003102/0.4448, allocations: 0.8832 MB / 0.5091 GB, free: 8.621 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches