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.001083/0.001083, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001268/0.001268, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.954/0.954, allocations: 177.1 MB / 205.3 MB, free: 5.102 MB / 186.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 2.094e-06/2.094e-06, allocations: 0 / 273.5 MB, free: 1.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.286e-05/3.495e-05, allocations: 2.312 kB / 273.5 MB, free: 1.16 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.003388/0.003423, allocations: 2.679 MB / 276.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001478/0.004901, allocations: 0.9654 MB / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002086/0.005109, allocations: 7.938 kB / 277.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.005306, allocations: 63.33 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002415/0.005548, allocations: 59.45 kB / 277.2 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000531/0.006079, allocations: 243.3 kB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003155/0.006394, allocations: 382.9 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/0.00661, allocations: 133.3 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.006797, allocations: 203.5 kB / 278.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.006939, allocations: 107.7 kB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.959e-05/0.006979, allocations: 31.94 kB / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001191/0.007098, allocations: 79.83 kB / 278.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.406e-05/0.007182, allocations: 87.67 kB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.341e-05/0.007255, allocations: 95.69 kB / 278.6 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003058/0.007561, allocations: 283 kB / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.007565, allocations: 0 / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.007566, allocations: 0 / 278.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.007572, allocations: 3.938 kB / 278.8 MB, free: 11.75 MB / 266.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.0006207/0.008193, allocations: 0.5348 MB / 279.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.008225, allocations: 8.031 kB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.982e-05/0.008284, allocations: 48.84 kB / 279.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.008558, allocations: 241.3 kB / 279.7 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.008582, allocations: 21.03 kB / 279.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/0.008616, allocations: 28.36 kB / 279.7 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005576/0.009173, allocations: 0.596 MB / 280.3 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.009188, allocations: 12.11 kB / 280.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.009207, allocations: 15.94 kB / 280.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.009215, allocations: 8 kB / 280.4 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.233e-05/0.009307, allocations: 70.67 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004585/0.009766, allocations: 0.5249 MB / 280.9 MB, free: 9.504 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003328/0.0101, allocations: 264.5 kB / 281.2 MB, free: 9.207 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.01025, allocations: 147.7 kB / 281.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002027/0.01045, allocations: 67.72 kB / 281.4 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.01048, allocations: 46.56 kB / 281.5 MB, free: 8.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=52): time 1.914e-06/0.01048, allocations: 0 / 281.5 MB, free: 8.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=52): time 0.0003166/0.01079, allocations: 241.3 kB / 281.7 MB, free: 8.688 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.057e-05/0.01088, allocations: 221 kB / 281.9 MB, free: 8.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.01101, allocations: 221 kB / 282.1 MB, free: 8.203 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.01103, allocations: 37.7 kB / 282.2 MB, free: 8.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.298e-05/0.01108, allocations: 133.4 kB / 282.3 MB, free: 8.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.0111, allocations: 35.72 kB / 282.3 MB, free: 7.988 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.399e-05/0.01114, allocations: 41.62 kB / 282.4 MB, free: 7.941 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.069e-05/0.01122, allocations: 330.8 kB / 282.7 MB, free: 7.609 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.59e-05/0.01125, allocations: 18.88 kB / 282.7 MB, free: 7.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.951e-05/0.01133, allocations: 146.5 kB / 282.9 MB, free: 7.395 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.04e-05/0.01142, allocations: 120.6 kB / 283 MB, free: 7.238 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.01142, allocations: 4 kB / 283 MB, free: 7.234 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001304/0.01155, allocations: 129.9 kB / 283.1 MB, free: 7.098 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.01157, allocations: 5.719 kB / 283.1 MB, free: 7.094 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.01158, allocations: 4.422 kB / 283.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.01159, allocations: 7.938 kB / 283.1 MB, free: 7.082 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.01173, allocations: 39.92 kB / 283.2 MB, free: 7.043 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.01174, allocations: 4 kB / 283.2 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.545e-05/0.01181, allocations: 23.88 kB / 283.2 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.01182, allocations: 4.312 kB / 283.2 MB, free: 7.012 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.0001116/0.01193, allocations: 148.5 kB / 283.3 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001844/0.01212, allocations: 169.5 kB / 283.5 MB, free: 6.684 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002131/0.01233, allocations: 200.6 kB / 283.7 MB, free: 6.484 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.381e-06/0.01233, allocations: 7.938 kB / 283.7 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.01234, allocations: 4 kB / 283.7 MB, free: 6.473 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.01234, allocations: 7.922 kB / 283.7 MB, free: 6.465 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001618/0.0125, allocations: 153.6 kB / 283.9 MB, free: 6.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.01251, allocations: 0 / 283.9 MB, free: 6.297 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002111/0.01272, allocations: 103.9 kB / 284 MB, free: 6.195 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.01273, allocations: 4 kB / 284 MB, free: 6.191 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.01274, allocations: 12 kB / 284 MB, free: 6.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.01275, allocations: 4 kB / 284 MB, free: 6.176 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.01275, allocations: 3.938 kB / 284 MB, free: 6.172 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001477/0.0129, allocations: 259.2 kB / 284.2 MB, free: 5.895 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.14e-05/0.01293, allocations: 35.69 kB / 284.3 MB, free: 5.859 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.01296, allocations: 15.98 kB / 284.3 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.01306, allocations: 16 kB / 284.3 MB, free: 5.828 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.062e-05/0.01309, allocations: 15.95 kB / 284.3 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.0131, allocations: 8 kB / 284.3 MB, free: 5.805 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.344e-05/0.01316, allocations: 82.77 kB / 284.4 MB, free: 5.723 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01316, allocations: 0 / 284.4 MB, free: 5.723 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000208/0.01337, allocations: 67.89 kB / 284.5 MB, free: 5.656 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.0001344/0.0135, allocations: 112.3 kB / 284.6 MB, free: 5.539 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001493/0.01365, allocations: 113.7 kB / 284.7 MB, free: 5.426 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.01365, allocations: 4.062 kB / 284.7 MB, free: 5.422 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.348e-05/0.01368, allocations: 24.8 kB / 284.7 MB, free: 5.395 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004594/0.01414, allocations: 227.8 kB / 285 MB, free: 5.168 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009494/0.01509, allocations: 0.6712 MB / 285.6 MB, free: 4.449 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.279e-05/0.01516, allocations: 125.2 kB / 285.7 MB, free: 4.305 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.284e-05/0.01521, allocations: 30.95 kB / 285.8 MB, free: 4.277 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.01536, allocations: 119.3 kB / 285.9 MB, free: 4.16 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/0.01536, allocations: 0 / 285.9 MB, free: 4.16 MB / 266.7 MB Notification: Performance of Templates: time 0.1107/0.1261, allocations: 4.919 MB / 290.8 MB, free: 24.81 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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.757420232053846]