Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.0009432/0.0009432, allocations: 78.19 kB / 21.42 MB, free: 3.078 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.0009778/0.0009778, allocations: 152.5 kB / 24.81 MB, free: 8.879 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.9643/0.9643, allocations: 173.4 MB / 201.5 MB, free: 8.305 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.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.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.704e-06/1.704e-06, allocations: 0 / 268.4 MB, free: 9.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.429e-05/3.599e-05, allocations: 2.312 kB / 268.4 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004708/0.004744, allocations: 2.609 MB / 271 MB, free: 7.172 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.006277, allocations: 0.8955 MB / 271.9 MB, free: 6.277 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002499/0.006527, allocations: 15.88 kB / 271.9 MB, free: 6.262 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00021/0.006737, allocations: 59.39 kB / 272 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002535/0.006991, allocations: 72.59 kB / 272 MB, free: 6.133 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006346/0.007625, allocations: 241.7 kB / 272.3 MB, free: 5.898 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004324/0.008058, allocations: 382.8 kB / 272.6 MB, free: 5.523 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002365/0.008294, allocations: 125.4 kB / 272.8 MB, free: 5.398 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002344/0.008528, allocations: 205.1 kB / 273 MB, free: 5.199 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.008674, allocations: 111.6 kB / 273.1 MB, free: 5.09 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.511e-05/0.008719, allocations: 28 kB / 273.1 MB, free: 5.062 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.008837, allocations: 67.97 kB / 273.2 MB, free: 4.996 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.763e-05/0.008925, allocations: 88.16 kB / 273.3 MB, free: 4.91 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.902e-05/0.009004, allocations: 107.7 kB / 273.4 MB, free: 4.805 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003378/0.009342, allocations: 275.7 kB / 273.6 MB, free: 4.535 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.009346, allocations: 0 / 273.6 MB, free: 4.535 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.009347, allocations: 0.75 kB / 273.6 MB, free: 4.535 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.009351, allocations: 0 / 273.6 MB, free: 4.535 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.0009429/0.01029, allocations: 0.6656 MB / 274.3 MB, free: 3.832 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.01034, allocations: 8.031 kB / 274.3 MB, free: 3.824 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.01045, allocations: 64.66 kB / 274.4 MB, free: 3.762 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003908/0.01084, allocations: 274.8 kB / 274.6 MB, free: 3.473 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.01087, allocations: 25.03 kB / 274.7 MB, free: 3.449 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.707e-05/0.0109, allocations: 24.88 kB / 274.7 MB, free: 3.426 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006227/0.01153, allocations: 0.6192 MB / 275.3 MB, free: 2.75 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.01154, allocations: 4.188 kB / 275.3 MB, free: 2.746 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.916e-05/0.01156, allocations: 11.94 kB / 275.3 MB, free: 2.734 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.01157, allocations: 11.98 kB / 275.3 MB, free: 2.723 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.932e-05/0.01167, allocations: 73.7 kB / 275.4 MB, free: 2.652 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005874/0.01226, allocations: 0.7572 MB / 276.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.01262, allocations: 317.8 kB / 276.5 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.01274, allocations: 151.2 kB / 276.6 MB, free: 1.309 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002165/0.01296, allocations: 55.95 kB / 276.7 MB, free: 1.254 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.366e-05/0.013, allocations: 53.27 kB / 276.7 MB, free: 1.191 MB / 250.7 MB Notification: Performance of pre-optimization done (n=52): time 2.735e-06/0.013, allocations: 7.922 kB / 276.7 MB, free: 1.184 MB / 250.7 MB Notification: Performance of matching and sorting (n=52): time 0.0003714/0.01337, allocations: 312.9 kB / 277 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.012e-05/0.01346, allocations: 213 kB / 277.2 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.0136, allocations: 280.2 kB / 277.5 MB, free: 340 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.01362, allocations: 33.7 kB / 277.6 MB, free: 300 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.831e-05/0.01372, allocations: 207.5 kB / 277.8 MB, free: 88 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.276e-05/0.01374, allocations: 31.78 kB / 277.8 MB, free: 56 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.257e-05/0.01379, allocations: 47.28 kB / 277.8 MB, free: 0 / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.0139, allocations: 0.5079 MB / 278.3 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.036e-05/0.01392, allocations: 12.12 kB / 278.4 MB, free: 15.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.957e-05/0.01401, allocations: 188.2 kB / 278.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.14e-05/0.0141, allocations: 136.4 kB / 278.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.0141, allocations: 4 kB / 278.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001346/0.01424, allocations: 133.3 kB / 278.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.01425, allocations: 8 kB / 278.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.01426, allocations: 4 kB / 278.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.01427, allocations: 7.938 kB / 278.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.224e-05/0.01436, allocations: 40.23 kB / 278.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.01436, allocations: 7.984 kB / 278.9 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.441e-05/0.01443, allocations: 19.89 kB / 278.9 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.01443, allocations: 4 kB / 278.9 MB, free: 14.81 MB / 266.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 0.0001063/0.01454, allocations: 188.4 kB / 279.1 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002277/0.01477, allocations: 233 kB / 279.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002444/0.01501, allocations: 228.8 kB / 279.5 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.01502, allocations: 7.938 kB / 279.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.01502, allocations: 8 kB / 279.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.01503, allocations: 7.922 kB / 279.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001871/0.01521, allocations: 184.9 kB / 279.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.01522, allocations: 4.469 kB / 279.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001849/0.0154, allocations: 99.88 kB / 279.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.01541, allocations: 0 / 279.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.01543, allocations: 12 kB / 279.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.01543, allocations: 4 kB / 279.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.01543, allocations: 0 / 279.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000198/0.01563, allocations: 382.2 kB / 280.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.791e-05/0.01567, allocations: 47.67 kB / 280.3 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.0157, allocations: 16 kB / 280.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.01581, allocations: 19.98 kB / 280.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.893e-05/0.01584, allocations: 11.92 kB / 280.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.01585, allocations: 8 kB / 280.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.96e-05/0.01594, allocations: 201.1 kB / 280.5 MB, free: 13.1 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01594, allocations: 0 / 280.5 MB, free: 13.1 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002512/0.0162, allocations: 55.95 kB / 280.6 MB, free: 13.04 MB / 266.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.0001493/0.01634, allocations: 135.1 kB / 280.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001711/0.01652, allocations: 121 kB / 280.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01652, allocations: 4 kB / 280.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.132e-05/0.01654, allocations: 23.61 kB / 280.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005229/0.01706, allocations: 231.9 kB / 281.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.01811, allocations: 0.6592 MB / 281.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.674e-05/0.01819, allocations: 129.2 kB / 281.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.21e-05/0.01825, allocations: 22.97 kB / 281.9 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.01841, allocations: 146.1 kB / 282 MB, free: 11.51 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.01841, allocations: 0 / 282 MB, free: 11.51 MB / 266.7 MB Notification: Performance of Templates: time 0.007464/0.02587, allocations: 4.968 MB / 287 MB, free: 6.652 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.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.8779128696769476]