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.001424/0.001432, allocations: 175.4 kB / 16.77 MB, free: 4.902 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.613/1.613, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007589/0.0007589, allocations: 90.41 kB / 271.3 MB, free: 8.242 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.07166/0.07166, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003981/0.0003981, allocations: 12 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07794/0.07836, allocations: 50.37 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.001744/0.08015, allocations: 1.512 MB / 444.5 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009037/0.08108, allocations: 0.6714 MB / 445.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.0812, allocations: 11.88 kB / 445.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.08133, allocations: 11.86 kB / 445.2 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.08146, allocations: 15.92 kB / 445.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004381/0.08191, allocations: 135.7 kB / 445.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001573/0.08208, allocations: 131.6 kB / 445.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.08221, allocations: 53.53 kB / 445.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.785e-05/0.08231, allocations: 47.77 kB / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.409e-05/0.08241, allocations: 43.72 kB / 445.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.08244, allocations: 4 kB / 445.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.614e-05/0.08252, allocations: 39.95 kB / 445.6 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.026e-05/0.08259, allocations: 39.83 kB / 445.7 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.891e-05/0.08266, allocations: 77.31 kB / 445.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001394/0.0828, allocations: 135.7 kB / 445.9 MB, free: 13.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.08281, allocations: 0 / 445.9 MB, free: 13.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.08282, allocations: 0 / 445.9 MB, free: 13.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.08283, allocations: 0 / 445.9 MB, free: 13.18 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.0005675/0.08341, allocations: 451.3 kB / 446.3 MB, free: 12.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.08345, allocations: 8.031 kB / 446.3 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.497e-05/0.0835, allocations: 20.75 kB / 446.3 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.08373, allocations: 240 kB / 446.6 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.08376, allocations: 12.56 kB / 446.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.258e-05/0.08379, allocations: 16.12 kB / 446.6 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005876/0.08438, allocations: 346.7 kB / 446.9 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.0844, allocations: 0 / 446.9 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.08443, allocations: 8 kB / 447 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.08444, allocations: 0 / 447 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000211/0.08465, allocations: 99.88 kB / 447 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003111/0.08497, allocations: 341.5 kB / 447.4 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003864/0.08537, allocations: 286.4 kB / 447.7 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.08554, allocations: 101.7 kB / 447.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004572/0.08601, allocations: 0.5856 MB / 448.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.08604, allocations: 38.5 kB / 448.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.403e-06/0.08604, allocations: 0 / 448.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005013/0.08655, allocations: 255.7 kB / 448.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/0.08662, allocations: 122.7 kB / 448.8 MB, free: 9.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.08676, allocations: 190.2 kB / 448.9 MB, free: 9.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.08679, allocations: 33.64 kB / 449 MB, free: 9.691 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.531e-05/0.08684, allocations: 104.6 kB / 449.1 MB, free: 9.586 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.131e-05/0.08686, allocations: 19.89 kB / 449.1 MB, free: 9.566 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-06/0.08687, allocations: 0 / 449.1 MB, free: 9.566 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.329e-05/0.08693, allocations: 330.9 kB / 449.4 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.208e-05/0.08701, allocations: 43.91 kB / 449.5 MB, free: 9.191 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.08714, allocations: 177 kB / 449.6 MB, free: 8.957 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.08732, allocations: 204.1 kB / 449.8 MB, free: 8.699 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.08733, allocations: 0 / 449.8 MB, free: 8.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002675/0.0876, allocations: 225.2 kB / 450.1 MB, free: 8.473 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.08763, allocations: 8 kB / 450.1 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.08764, allocations: 4 kB / 450.1 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.08766, allocations: 4 kB / 450.1 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.08779, allocations: 43.91 kB / 450.1 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.08781, allocations: 8 kB / 450.1 MB, free: 8.406 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.08794, allocations: 20.19 kB / 450.1 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.08797, allocations: 16 kB / 450.2 MB, free: 8.371 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.926e-05/0.08807, allocations: 157.3 kB / 450.3 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002571/0.08833, allocations: 176 kB / 450.5 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000314/0.08866, allocations: 195.3 kB / 450.7 MB, free: 7.836 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.08867, allocations: 4 kB / 450.7 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.08868, allocations: 0 / 450.7 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.08869, allocations: 0 / 450.7 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.08885, allocations: 221.6 kB / 450.9 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.08887, allocations: 4 kB / 450.9 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/0.089, allocations: 39.86 kB / 450.9 MB, free: 7.523 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.08901, allocations: 4 kB / 450.9 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.08903, allocations: 7.984 kB / 450.9 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.08904, allocations: 0 / 450.9 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.08905, allocations: 4 kB / 450.9 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003189/0.08937, allocations: 292 kB / 451.2 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.007e-05/0.08945, allocations: 116.8 kB / 451.3 MB, free: 7.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/0.08949, allocations: 4 kB / 451.4 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.08962, allocations: 19.98 kB / 451.4 MB, free: 7.047 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.08966, allocations: 11.98 kB / 451.4 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.08969, allocations: 7.938 kB / 451.4 MB, free: 7.027 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.519e-05/0.08978, allocations: 140.4 kB / 451.5 MB, free: 6.891 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.08978, allocations: 0 / 451.5 MB, free: 6.891 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002814/0.09007, allocations: 39.92 kB / 451.6 MB, free: 6.852 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.0001312/0.09021, allocations: 103.2 kB / 451.7 MB, free: 6.742 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002736/0.09049, allocations: 155.7 kB / 451.8 MB, free: 6.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.0905, allocations: 0 / 451.8 MB, free: 6.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.531e-05/0.09054, allocations: 9.188 kB / 451.8 MB, free: 6.582 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005657/0.09111, allocations: 158.5 kB / 452 MB, free: 6.422 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005196/0.09164, allocations: 404.8 kB / 452.4 MB, free: 5.996 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001426/0.0918, allocations: 0.7363 MB / 453.1 MB, free: 5.234 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.796e-05/0.09187, allocations: 19.44 kB / 453.1 MB, free: 5.215 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.09187, allocations: 3.938 kB / 453.1 MB, free: 5.211 MB / 298.7 MB Notification: Performance of Templates: time 0.003299/0.09518, allocations: 2.193 MB / 455.3 MB, free: 3.012 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