Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009115/0.0009115, allocations: 142.6 kB / 25.59 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9113/0.9113, allocations: 173.4 MB / 202.2 MB, free: 8.27 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.397e-05/2.602e-05, allocations: 2.312 kB / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003465/0.003491, allocations: 1.863 MB / 271.1 MB, free: 7.906 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.004743, allocations: 0.6569 MB / 271.7 MB, free: 7.246 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.004858, allocations: 3.938 kB / 271.7 MB, free: 7.242 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.005004, allocations: 23.8 kB / 271.8 MB, free: 7.219 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001655/0.00517, allocations: 31.72 kB / 271.8 MB, free: 7.188 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000537/0.005707, allocations: 161.2 kB / 271.9 MB, free: 7.031 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002192/0.005926, allocations: 161.3 kB / 272.1 MB, free: 6.875 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.006055, allocations: 33.78 kB / 272.1 MB, free: 6.84 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.006218, allocations: 75.81 kB / 272.2 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.006323, allocations: 43.88 kB / 272.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.01e-05/0.006353, allocations: 13.31 kB / 272.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.006459, allocations: 51.91 kB / 272.3 MB, free: 6.66 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.073e-05/0.00654, allocations: 47.83 kB / 272.4 MB, free: 6.613 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.597e-05/0.006596, allocations: 39.89 kB / 272.4 MB, free: 6.574 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002456/0.006841, allocations: 144 kB / 272.5 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.006844, allocations: 0.5938 kB / 272.5 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.006846, allocations: 0 / 272.5 MB, free: 6.434 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.006852, allocations: 5.562 kB / 272.5 MB, free: 6.43 MB / 250.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.0005502/0.007402, allocations: 0.492 MB / 273 MB, free: 5.902 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.007442, allocations: 8.031 kB / 273 MB, free: 5.895 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.34e-05/0.007495, allocations: 29.61 kB / 273.1 MB, free: 5.867 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006639/0.008159, allocations: 190.9 kB / 273.3 MB, free: 5.656 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.008179, allocations: 4.562 kB / 273.3 MB, free: 5.652 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/0.0082, allocations: 8.375 kB / 273.3 MB, free: 5.645 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004129/0.008613, allocations: 292 kB / 273.6 MB, free: 5.324 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.008622, allocations: 0 / 273.6 MB, free: 5.324 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.008638, allocations: 7.984 kB / 273.6 MB, free: 5.316 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.008647, allocations: 4 kB / 273.6 MB, free: 5.312 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.57e-05/0.008702, allocations: 15.98 kB / 273.6 MB, free: 5.297 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002884/0.008991, allocations: 291.9 kB / 273.9 MB, free: 4.98 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.009203, allocations: 122 kB / 274 MB, free: 4.836 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.355e-05/0.009276, allocations: 71.23 kB / 274.1 MB, free: 4.762 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002447/0.009521, allocations: 47.95 kB / 274.1 MB, free: 4.715 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.00955, allocations: 41.39 kB / 274.2 MB, free: 4.664 MB / 250.7 MB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.009552, allocations: 0 / 274.2 MB, free: 4.664 MB / 250.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002664/0.009818, allocations: 127.5 kB / 274.3 MB, free: 4.535 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.136e-05/0.009889, allocations: 118.9 kB / 274.4 MB, free: 4.395 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.01003, allocations: 237.7 kB / 274.6 MB, free: 4.145 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.01005, allocations: 25.7 kB / 274.6 MB, free: 4.113 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.255e-05/0.01012, allocations: 155.3 kB / 274.8 MB, free: 3.957 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.01014, allocations: 11.94 kB / 274.8 MB, free: 3.945 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.658e-05/0.01019, allocations: 31.36 kB / 274.8 MB, free: 3.906 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.01034, allocations: 0.4961 MB / 275.3 MB, free: 3.398 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.491e-05/0.01036, allocations: 4 kB / 275.3 MB, free: 3.395 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.726e-05/0.01041, allocations: 91.98 kB / 275.4 MB, free: 3.277 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.48e-05/0.01047, allocations: 42.78 kB / 275.5 MB, free: 3.219 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.01047, allocations: 0 / 275.5 MB, free: 3.219 MB / 250.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001065/0.01058, allocations: 81.47 kB / 275.6 MB, free: 3.133 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.01059, allocations: 4 kB / 275.6 MB, free: 3.129 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.0106, allocations: 4 kB / 275.6 MB, free: 3.125 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.01061, allocations: 0 / 275.6 MB, free: 3.125 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.522e-05/0.01067, allocations: 15.98 kB / 275.6 MB, free: 3.109 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-06/0.01068, allocations: 128 / 275.6 MB, free: 3.109 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.546e-05/0.01072, allocations: 8 kB / 275.6 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-06/0.01073, allocations: 0 / 275.6 MB, free: 3.102 MB / 250.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: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001069/0.01083, allocations: 180.4 kB / 275.8 MB, free: 2.914 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001462/0.01098, allocations: 109.4 kB / 275.9 MB, free: 2.801 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001925/0.01117, allocations: 122.2 kB / 276 MB, free: 2.676 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.01118, allocations: 4 kB / 276 MB, free: 2.672 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.01118, allocations: 0 / 276 MB, free: 2.672 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.01118, allocations: 3.984 kB / 276 MB, free: 2.668 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.01134, allocations: 133.1 kB / 276.1 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.01134, allocations: 4 kB / 276.1 MB, free: 2.508 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.01144, allocations: 27.98 kB / 276.2 MB, free: 2.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.01145, allocations: 4 kB / 276.2 MB, free: 2.477 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.01146, allocations: 7.984 kB / 276.2 MB, free: 2.469 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.01146, allocations: 4 kB / 276.2 MB, free: 2.465 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.01147, allocations: 0 / 276.2 MB, free: 2.465 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.01159, allocations: 207.4 kB / 276.4 MB, free: 2.238 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.553e-05/0.01165, allocations: 43.81 kB / 276.4 MB, free: 2.195 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.01168, allocations: 0 / 276.4 MB, free: 2.195 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.784e-05/0.01177, allocations: 16.02 kB / 276.4 MB, free: 2.18 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.123e-05/0.01179, allocations: 4 kB / 276.4 MB, free: 2.176 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.0118, allocations: 4 kB / 276.4 MB, free: 2.172 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.423e-05/0.01189, allocations: 172.2 kB / 276.6 MB, free: 2.004 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01189, allocations: 0 / 276.6 MB, free: 2.004 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000269/0.01215, allocations: 28 kB / 276.6 MB, free: 1.977 MB / 250.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 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.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.0001532/0.01231, allocations: 119.1 kB / 276.8 MB, free: 1.852 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.938e-05/0.01241, allocations: 51.47 kB / 276.8 MB, free: 1.797 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.01241, allocations: 256 / 276.8 MB, free: 1.797 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.398e-05/0.01242, allocations: 23.61 kB / 276.8 MB, free: 1.77 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.01275, allocations: 111.5 kB / 276.9 MB, free: 1.656 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004718/0.01322, allocations: 291.1 kB / 277.2 MB, free: 1.336 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.658e-05/0.01327, allocations: 83.92 kB / 277.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.016e-05/0.0133, allocations: 17.2 kB / 277.3 MB, free: 1.215 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.341e-05/0.01339, allocations: 102.2 kB / 277.4 MB, free: 1.113 MB / 250.7 MB Notification: Performance of SimCode: time 5.82e-07/0.01339, allocations: 0 / 277.4 MB, free: 1.113 MB / 250.7 MB Notification: Performance of Templates: time 0.004395/0.01779, allocations: 2.662 MB / 280.1 MB, free: 14.48 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7283859928138554]