Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002046/0.003203, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001665/0.002909, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.144/1.144, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.103/1.247, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5101,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5101,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.102e-05/2.223e-05, allocations: 2.312 kB / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002886/0.002909, allocations: 2.71 MB / 247.4 MB, free: 11.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.004196, allocations: 0.9585 MB / 248.3 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.004359, allocations: 15.88 kB / 248.4 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.004498, allocations: 67.31 kB / 248.4 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.004661, allocations: 63.45 kB / 248.5 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004453/0.005106, allocations: 239.3 kB / 248.7 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002814/0.005387, allocations: 378.8 kB / 249.1 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.005585, allocations: 133.3 kB / 249.2 MB, free: 9.684 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002252/0.00581, allocations: 229.2 kB / 249.5 MB, free: 9.457 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.005947, allocations: 107.6 kB / 249.6 MB, free: 9.352 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.871e-05/0.005986, allocations: 32 kB / 249.6 MB, free: 9.32 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.006102, allocations: 75.94 kB / 249.7 MB, free: 9.246 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.886e-05/0.006181, allocations: 63.75 kB / 249.7 MB, free: 9.184 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.632e-05/0.006247, allocations: 87.75 kB / 249.8 MB, free: 9.098 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002883/0.006536, allocations: 247 kB / 250.1 MB, free: 8.855 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.006545, allocations: 0 / 250.1 MB, free: 8.855 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.006546, allocations: 0 / 250.1 MB, free: 8.855 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.006555, allocations: 0 / 250.1 MB, free: 8.855 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0006849/0.00724, allocations: 0.6008 MB / 250.7 MB, free: 8.23 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.007272, allocations: 11.98 kB / 250.7 MB, free: 8.219 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.032e-05/0.007332, allocations: 48.89 kB / 250.7 MB, free: 8.172 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002589/0.007591, allocations: 249.2 kB / 251 MB, free: 7.902 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.007618, allocations: 21.03 kB / 251 MB, free: 7.879 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.007654, allocations: 24.38 kB / 251 MB, free: 7.855 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005577/0.008212, allocations: 0.6039 MB / 251.6 MB, free: 7.199 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.008225, allocations: 4.141 kB / 251.6 MB, free: 7.195 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.008244, allocations: 15.94 kB / 251.6 MB, free: 7.18 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.008252, allocations: 11.94 kB / 251.6 MB, free: 7.168 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.241e-05/0.008345, allocations: 69.06 kB / 251.7 MB, free: 7.102 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004578/0.008803, allocations: 0.5249 MB / 252.2 MB, free: 6.535 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.009135, allocations: 264.2 kB / 252.5 MB, free: 6.242 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.009244, allocations: 143.8 kB / 252.6 MB, free: 6.09 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00019/0.009434, allocations: 59.72 kB / 252.7 MB, free: 6.031 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.009461, allocations: 50.55 kB / 252.7 MB, free: 5.973 MB / 250.7 MB Notification: Performance of pre-optimization done (n=52): time 1.653e-06/0.009463, allocations: 0 / 252.7 MB, free: 5.973 MB / 250.7 MB Notification: Performance of matching and sorting (n=52): time 0.0003121/0.009775, allocations: 246.4 kB / 253 MB, free: 5.727 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.062e-05/0.009846, allocations: 164.6 kB / 253.1 MB, free: 5.535 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.009967, allocations: 229 kB / 253.4 MB, free: 5.297 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.009987, allocations: 33.7 kB / 253.4 MB, free: 5.258 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.285e-05/0.01004, allocations: 137.2 kB / 253.5 MB, free: 5.121 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.01006, allocations: 27.78 kB / 253.6 MB, free: 5.094 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.819e-05/0.0101, allocations: 37.69 kB / 253.6 MB, free: 5.051 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.517e-05/0.01017, allocations: 334.8 kB / 253.9 MB, free: 4.715 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.2e-05/0.01019, allocations: 26.81 kB / 253.9 MB, free: 4.688 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.908e-05/0.01026, allocations: 146.5 kB / 254.1 MB, free: 4.492 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.061e-05/0.01034, allocations: 116.6 kB / 254.2 MB, free: 4.34 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.01035, allocations: 4 kB / 254.2 MB, free: 4.336 MB / 250.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001168/0.01046, allocations: 125.9 kB / 254.3 MB, free: 4.203 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.01048, allocations: 4 kB / 254.3 MB, free: 4.199 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.01048, allocations: 4 kB / 254.3 MB, free: 4.195 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.0105, allocations: 11.92 kB / 254.3 MB, free: 4.184 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.01063, allocations: 39.92 kB / 254.4 MB, free: 4.145 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.01063, allocations: 4 kB / 254.4 MB, free: 4.141 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.258e-05/0.0107, allocations: 23.88 kB / 254.4 MB, free: 4.117 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.0107, allocations: 4.281 kB / 254.4 MB, free: 4.113 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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 9.493e-05/0.0108, allocations: 147.5 kB / 254.6 MB, free: 3.961 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.01097, allocations: 173.5 kB / 254.7 MB, free: 3.785 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001981/0.01116, allocations: 196.6 kB / 254.9 MB, free: 3.586 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.01117, allocations: 11.94 kB / 254.9 MB, free: 3.574 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.01117, allocations: 0 / 254.9 MB, free: 3.574 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.01118, allocations: 7.984 kB / 254.9 MB, free: 3.566 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001605/0.01134, allocations: 157.5 kB / 255.1 MB, free: 3.395 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.01135, allocations: 3.938 kB / 255.1 MB, free: 3.391 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.01156, allocations: 111.9 kB / 255.2 MB, free: 3.281 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.01167, allocations: 39.64 kB / 255.2 MB, free: 3.242 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.01168, allocations: 4 kB / 255.2 MB, free: 3.238 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.01169, allocations: 12 kB / 255.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.0117, allocations: 11.92 kB / 255.3 MB, free: 3.215 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.0117, allocations: 0 / 255.3 MB, free: 3.215 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001406/0.01184, allocations: 251.2 kB / 255.5 MB, free: 2.945 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.301e-05/0.01187, allocations: 15.98 kB / 255.5 MB, free: 2.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.01197, allocations: 16.06 kB / 255.5 MB, free: 2.914 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.715e-05/0.012, allocations: 19.95 kB / 255.6 MB, free: 2.895 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.01202, allocations: 12 kB / 255.6 MB, free: 2.883 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.348e-05/0.01207, allocations: 82.75 kB / 255.7 MB, free: 2.801 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01207, allocations: 0 / 255.7 MB, free: 2.801 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002147/0.01229, allocations: 67.89 kB / 255.7 MB, free: 2.734 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * 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: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * 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.0001346/0.01242, allocations: 104.3 kB / 255.8 MB, free: 2.625 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000157/0.01258, allocations: 113 kB / 255.9 MB, free: 2.512 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.01258, allocations: 8.094 kB / 255.9 MB, free: 2.504 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.748e-05/0.01261, allocations: 24.73 kB / 256 MB, free: 2.477 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005888/0.0132, allocations: 0.707 MB / 256.7 MB, free: 1.66 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.01482, allocations: 0.6557 MB / 257.3 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.334e-05/0.01489, allocations: 129.2 kB / 257.5 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.222e-05/0.01495, allocations: 18.98 kB / 257.5 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.01509, allocations: 123.3 kB / 257.6 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of SimCode: time 8.41e-07/0.01509, allocations: 0 / 257.6 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of Templates: time 0.006638/0.02173, allocations: 4.982 MB / 262.6 MB, free: 11.8 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.979345972649753]