Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.0008431/0.0008432, allocations: 173.5 kB / 16.8 MB, free: 5.008 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.294/1.294, allocations: 205.4 MB / 223 MB, free: 9.004 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.0007793/0.0007795, allocations: 97.73 kB / 271.3 MB, free: 8.234 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.07833/0.07833, allocations: 12.59 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004048/0.0004051, allocations: 8 kB / 393.3 MB, free: 65.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0875/0.08792, allocations: 50.39 MB / 443.7 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.001965/0.08993, allocations: 1.543 MB / 445.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.09103, allocations: 0.7021 MB / 445.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.09115, allocations: 0 / 445.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.09129, allocations: 27.8 kB / 446 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001404/0.09144, allocations: 15.91 kB / 446 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004821/0.09193, allocations: 135.8 kB / 446.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.0921, allocations: 135.6 kB / 446.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.09225, allocations: 65.5 kB / 446.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.494e-05/0.09235, allocations: 35.8 kB / 446.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.09247, allocations: 55.62 kB / 446.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.582e-05/0.0925, allocations: 4 kB / 446.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.245e-05/0.0926, allocations: 43.91 kB / 446.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.73e-05/0.09268, allocations: 27.91 kB / 446.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.231e-05/0.09275, allocations: 89.19 kB / 446.6 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.09293, allocations: 132 kB / 446.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.09295, allocations: 0 / 446.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.09295, allocations: 0 / 446.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.09296, allocations: 0 / 446.7 MB, free: 12.38 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.0005964/0.09356, allocations: 454.9 kB / 447.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.09362, allocations: 12.03 kB / 447.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.228e-05/0.09368, allocations: 20.75 kB / 447.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.09395, allocations: 240 kB / 447.4 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.09397, allocations: 8.547 kB / 447.4 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.311e-05/0.094, allocations: 16.12 kB / 447.4 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006021/0.09461, allocations: 353.9 kB / 447.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.09464, allocations: 3.984 kB / 447.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.09466, allocations: 0 / 447.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.09467, allocations: 4 kB / 447.8 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002156/0.09489, allocations: 95.88 kB / 447.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003599/0.09526, allocations: 345.6 kB / 448.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000413/0.09569, allocations: 278.1 kB / 448.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.09586, allocations: 109.7 kB / 448.6 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005166/0.09639, allocations: 0.5856 MB / 449.2 MB, free: 9.562 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.09642, allocations: 38.78 kB / 449.2 MB, free: 9.516 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.292e-06/0.09643, allocations: 0 / 449.2 MB, free: 9.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005451/0.09698, allocations: 260.5 kB / 449.5 MB, free: 9.258 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.09705, allocations: 114.8 kB / 449.6 MB, free: 9.121 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.09721, allocations: 202.3 kB / 449.8 MB, free: 8.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.09723, allocations: 25.7 kB / 449.8 MB, free: 8.879 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.814e-05/0.09728, allocations: 104.6 kB / 449.9 MB, free: 8.773 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.325e-05/0.09731, allocations: 19.83 kB / 449.9 MB, free: 8.754 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.925e-06/0.09732, allocations: 8 kB / 449.9 MB, free: 8.746 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.221e-05/0.09739, allocations: 322.8 kB / 450.3 MB, free: 8.422 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.276e-05/0.09747, allocations: 39.97 kB / 450.3 MB, free: 8.383 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.09759, allocations: 173 kB / 450.5 MB, free: 8.152 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.09777, allocations: 208.1 kB / 450.7 MB, free: 7.891 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.09778, allocations: 4 kB / 450.7 MB, free: 7.887 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002616/0.09805, allocations: 217 kB / 450.9 MB, free: 7.668 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.09807, allocations: 8 kB / 450.9 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.09808, allocations: 4.594 kB / 450.9 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.09811, allocations: 12 kB / 450.9 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.09825, allocations: 47.86 kB / 450.9 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.09827, allocations: 11.92 kB / 451 MB, free: 7.586 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.09837, allocations: 19.84 kB / 451 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.09839, allocations: 12 kB / 451 MB, free: 7.555 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001126/0.09851, allocations: 153.6 kB / 451.1 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002642/0.09878, allocations: 175.9 kB / 451.3 MB, free: 7.219 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003199/0.09911, allocations: 187.4 kB / 451.5 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.09913, allocations: 0 / 451.5 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.09914, allocations: 7.938 kB / 451.5 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.09915, allocations: 4 kB / 451.5 MB, free: 7.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.09933, allocations: 233.4 kB / 451.7 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.09934, allocations: 0 / 451.7 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/0.09948, allocations: 43.91 kB / 451.8 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.09949, allocations: 0 / 451.8 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.09951, allocations: 0 / 451.8 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.09952, allocations: 4 kB / 451.8 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.09953, allocations: 0 / 451.8 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003428/0.09987, allocations: 296 kB / 452.1 MB, free: 6.387 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.987e-05/0.09995, allocations: 124.8 kB / 452.2 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.124e-05/0.09999, allocations: 11.98 kB / 452.2 MB, free: 6.234 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.1001, allocations: 8 kB / 452.2 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.1002, allocations: 7.984 kB / 452.2 MB, free: 6.219 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.1002, allocations: 4 kB / 452.2 MB, free: 6.215 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.295e-05/0.1003, allocations: 144.4 kB / 452.4 MB, free: 6.074 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1003, allocations: 0 / 452.4 MB, free: 6.074 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002791/0.1006, allocations: 32 kB / 452.4 MB, free: 6.043 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001518/0.1007, allocations: 123.2 kB / 452.5 MB, free: 5.914 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003011/0.101, allocations: 144.9 kB / 452.7 MB, free: 5.773 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1011, allocations: 4.062 kB / 452.7 MB, free: 5.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.888e-05/0.1011, allocations: 15.92 kB / 452.7 MB, free: 5.754 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005507/0.1017, allocations: 150.4 kB / 452.8 MB, free: 5.602 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005526/0.1022, allocations: 428.6 kB / 453.2 MB, free: 5.152 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001553/0.1024, allocations: 0.7285 MB / 454 MB, free: 4.398 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.885e-05/0.1024, allocations: 19.42 kB / 454 MB, free: 4.379 MB / 298.7 MB Notification: Performance of SimCode: time 2.71e-07/0.1024, allocations: 0 / 454 MB, free: 4.379 MB / 298.7 MB Notification: Performance of Templates: time 0.003352/0.1058, allocations: 2.209 MB / 456.2 MB, free: 2.164 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches