Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001348/0.001348, allocations: 175.3 kB / 16.45 MB, free: 5.684 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.511/1.511, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.0007371/0.0007371, allocations: 90.28 kB / 270.9 MB, free: 8.355 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.07356/0.07356, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003768/0.0003768, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06613/0.06652, allocations: 50.37 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.001476/0.06805, allocations: 1.511 MB / 443.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007764/0.06884, allocations: 0.6792 MB / 444.6 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.371e-05/0.06894, allocations: 3.938 kB / 444.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.06905, allocations: 15.86 kB / 444.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001324/0.06919, allocations: 19.86 kB / 444.6 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.06956, allocations: 131.8 kB / 444.7 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001291/0.0697, allocations: 131.6 kB / 444.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.792e-05/0.0698, allocations: 41.72 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.502e-05/0.06988, allocations: 39.78 kB / 444.9 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.302e-05/0.06996, allocations: 51.7 kB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.877e-05/0.06998, allocations: 4 kB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.229e-05/0.07006, allocations: 35.97 kB / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.661e-05/0.07012, allocations: 35.83 kB / 445.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.237e-05/0.07015, allocations: 45.64 kB / 445.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001189/0.07028, allocations: 131.7 kB / 445.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.07029, allocations: 0 / 445.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.0703, allocations: 3.938 kB / 445.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.07031, allocations: 0 / 445.2 MB, free: 13.56 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0004978/0.07081, allocations: 455.1 kB / 445.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.75e-05/0.07084, allocations: 8.031 kB / 445.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.207e-05/0.07089, allocations: 15.81 kB / 445.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001964/0.07109, allocations: 234.8 kB / 445.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.07112, allocations: 8.188 kB / 445.9 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.07114, allocations: 12 kB / 446 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005425/0.07169, allocations: 351.8 kB / 446.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.07171, allocations: 0 / 446.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.07173, allocations: 4 kB / 446.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.07174, allocations: 0 / 446.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002136/0.07196, allocations: 103.8 kB / 446.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000273/0.07224, allocations: 337.6 kB / 446.7 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003899/0.07264, allocations: 286.1 kB / 447 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.07281, allocations: 109.7 kB / 447.1 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004631/0.07328, allocations: 0.5817 MB / 447.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.07331, allocations: 34.84 kB / 447.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.383e-06/0.07332, allocations: 7.938 kB / 447.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.000497/0.07382, allocations: 253.3 kB / 448 MB, free: 10.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.07388, allocations: 126.7 kB / 448.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.07401, allocations: 194.2 kB / 448.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.07403, allocations: 29.7 kB / 448.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.766e-05/0.07407, allocations: 104.5 kB / 448.4 MB, free: 9.965 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.605e-05/0.0741, allocations: 15.89 kB / 448.4 MB, free: 9.949 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-06/0.07411, allocations: 4 kB / 448.5 MB, free: 9.945 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.113e-05/0.07415, allocations: 326.8 kB / 448.8 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.344e-05/0.07423, allocations: 44.36 kB / 448.8 MB, free: 9.574 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.07434, allocations: 165.8 kB / 449 MB, free: 9.352 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.464e-05/0.07445, allocations: 63.95 kB / 449 MB, free: 9.289 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.07446, allocations: 4 kB / 449 MB, free: 9.285 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002681/0.07473, allocations: 221.5 kB / 449.3 MB, free: 9.062 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.07475, allocations: 18.05 kB / 449.3 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.07476, allocations: 4 kB / 449.3 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.07478, allocations: 4 kB / 449.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.07492, allocations: 51.92 kB / 449.3 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.07493, allocations: 4 kB / 449.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.07504, allocations: 19.83 kB / 449.4 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.07506, allocations: 19.94 kB / 449.4 MB, free: 8.945 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample.noise.seedState[3],$CLKPRE.sample.noise.seedState[3],sample.noise.seedState[2],$CLKPRE.sample.noise.seedState[2],sample.noise.seedState[1],$CLKPRE.sample.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[3],sample.noise.seedState[2],sample.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.23e-05/0.07516, allocations: 157.3 kB / 449.5 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002503/0.07542, allocations: 161.4 kB / 449.7 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002901/0.07572, allocations: 199.2 kB / 449.9 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.07573, allocations: 4 kB / 449.9 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.07574, allocations: 0 / 449.9 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.07575, allocations: 0 / 449.9 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.0759, allocations: 225.5 kB / 450.1 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.07591, allocations: 0 / 450.1 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001346/0.07605, allocations: 35.92 kB / 450.1 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.07606, allocations: 0 / 450.1 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.07607, allocations: 8 kB / 450.2 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.07608, allocations: 11.94 kB / 450.2 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.07609, allocations: 0 / 450.2 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003176/0.07641, allocations: 294.5 kB / 450.5 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.205e-05/0.07648, allocations: 116.9 kB / 450.6 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.07651, allocations: 4 kB / 450.6 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.07665, allocations: 12 kB / 450.6 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.538e-05/0.07668, allocations: 7.922 kB / 450.6 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.07669, allocations: 4 kB / 450.6 MB, free: 7.625 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.019e-05/0.07678, allocations: 140.4 kB / 450.7 MB, free: 7.488 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07679, allocations: 4 kB / 450.7 MB, free: 7.484 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002682/0.07706, allocations: 32 kB / 450.8 MB, free: 7.453 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: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001266/0.07719, allocations: 111.2 kB / 450.9 MB, free: 7.336 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002827/0.07748, allocations: 152.4 kB / 451 MB, free: 7.188 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.07749, allocations: 0 / 451 MB, free: 7.188 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.638e-05/0.07754, allocations: 11.98 kB / 451 MB, free: 7.176 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004919/0.07803, allocations: 158.8 kB / 451.2 MB, free: 7.016 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004875/0.07853, allocations: 420.9 kB / 451.6 MB, free: 6.574 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.07867, allocations: 0.7285 MB / 452.3 MB, free: 5.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.612e-05/0.07871, allocations: 19.42 kB / 452.3 MB, free: 5.801 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.07872, allocations: 0 / 452.3 MB, free: 5.801 MB / 298.7 MB Notification: Performance of Templates: time 0.002891/0.08161, allocations: 2.165 MB / 454.5 MB, free: 3.629 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches