Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00115/0.00115, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001599/0.001599, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002786, allocations: 8 kB / 307.7 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1076, allocations: 51.52 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002904/0.1106, allocations: 2.346 MB / 361.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.1122, allocations: 0.9195 MB / 362.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.1123, allocations: 7.938 kB / 362.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.1125, allocations: 47.58 kB / 362.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.1127, allocations: 51.64 kB / 362.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006538/0.1134, allocations: 203.7 kB / 362.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003657/0.1138, allocations: 350.9 kB / 363.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003318/0.1141, allocations: 172.8 kB / 363.3 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001487/0.1143, allocations: 107.4 kB / 363.4 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.1145, allocations: 119.2 kB / 363.6 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.447e-05/0.1145, allocations: 8 kB / 363.6 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.1146, allocations: 47.97 kB / 363.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.699e-05/0.1147, allocations: 47.77 kB / 363.7 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.1149, allocations: 156.7 kB / 363.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003612/0.1152, allocations: 374.8 kB / 364.2 MB, free: 8.352 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1152, allocations: 0 / 364.2 MB, free: 8.352 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1152, allocations: 7.938 kB / 364.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.1153, allocations: 0 / 364.2 MB, free: 8.344 MB / 302.1 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.0009967/0.1163, allocations: 0.5847 MB / 364.8 MB, free: 7.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1163, allocations: 12.03 kB / 364.8 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.656e-05/0.1164, allocations: 40.47 kB / 364.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004204/0.1168, allocations: 327.8 kB / 365.1 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.855e-05/0.1169, allocations: 24.94 kB / 365.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.571e-05/0.1169, allocations: 28.38 kB / 365.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.1183, allocations: 0.7832 MB / 366 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.1184, allocations: 0 / 366 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.136e-05/0.1184, allocations: 12 kB / 366 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.1184, allocations: 4 kB / 366 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005989/0.119, allocations: 247.8 kB / 366.2 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008295/0.1199, allocations: 0.7643 MB / 367 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.121, allocations: 0.6465 MB / 367.6 MB, free: 4.609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004849/0.1215, allocations: 283.5 kB / 367.9 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006303/0.1222, allocations: 0.605 MB / 368.5 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.1222, allocations: 42.34 kB / 368.6 MB, free: 3.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 1.743e-06/0.1222, allocations: 4 kB / 368.6 MB, free: 3.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001284/0.1235, allocations: 0.5645 MB / 369.1 MB, free: 2.961 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.1237, allocations: 211.9 kB / 369.3 MB, free: 2.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.1239, allocations: 246.6 kB / 369.6 MB, free: 2.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.457e-05/0.124, allocations: 37.7 kB / 369.6 MB, free: 2.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.1241, allocations: 160.6 kB / 369.8 MB, free: 2.258 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.727e-05/0.1241, allocations: 47.62 kB / 369.8 MB, free: 2.211 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.014e-05/0.1242, allocations: 45.7 kB / 369.9 MB, free: 2.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1243, allocations: 346.8 kB / 370.2 MB, free: 1.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002094/0.1246, allocations: 89.06 kB / 370.3 MB, free: 1.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004456/0.125, allocations: 439 kB / 370.7 MB, free: 1.133 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006074/0.1256, allocations: 0.5359 MB / 371.3 MB, free: 444 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/0.1256, allocations: 4 kB / 371.3 MB, free: 440 kB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.187/0.3126, allocations: 0.4927 MB / 371.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.3127, allocations: 11 kB / 371.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.299e-05/0.3127, allocations: 12.94 kB / 371.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.371e-05/0.3128, allocations: 14.28 kB / 371.8 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004136/0.3132, allocations: 125.9 kB / 371.9 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.714e-05/0.3132, allocations: 22.89 kB / 371.9 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003811/0.3136, allocations: 58.22 kB / 372 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.416e-05/0.3137, allocations: 29.97 kB / 372 MB, free: 18.95 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (61): * Single equations (assignments): 61 * 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.0002745/0.314, allocations: 207.4 kB / 372.2 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007342/0.3147, allocations: 364.7 kB / 372.6 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007553/0.3155, allocations: 373.7 kB / 372.9 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.208e-06/0.3155, allocations: 5.719 kB / 373 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3155, allocations: 2.797 kB / 373 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.3155, allocations: 3.234 kB / 373 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004014/0.3159, allocations: 336.3 kB / 373.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.3159, allocations: 2.328 kB / 373.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004231/0.3164, allocations: 109.8 kB / 373.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.3164, allocations: 3.281 kB / 373.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.3164, allocations: 11.36 kB / 373.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-06/0.3164, allocations: 7.062 kB / 373.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.3164, allocations: 0.5312 kB / 373.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.3178, allocations: 0.8176 MB / 374.2 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.697e-05/0.3179, allocations: 117.3 kB / 374.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.124e-05/0.3179, allocations: 14.45 kB / 374.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002782/0.3182, allocations: 40.42 kB / 374.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.3183, allocations: 9.031 kB / 374.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.972e-05/0.3183, allocations: 15 kB / 374.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002254/0.3186, allocations: 187.2 kB / 374.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3186, allocations: 0 / 374.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000576/0.3192, allocations: 76 kB / 374.7 MB, free: 18.11 MB / 302.1 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.0001736/0.3193, allocations: 127 kB / 374.8 MB, free: 18.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007795/0.3201, allocations: 380.3 kB / 375.2 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3201, allocations: 4.125 kB / 375.2 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.3202, allocations: 36.2 kB / 375.2 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.3214, allocations: 327.1 kB / 375.5 MB, free: 17.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.323, allocations: 0.9223 MB / 376.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.3233, allocations: 0.8108 MB / 377.3 MB, free: 16.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001321/0.3234, allocations: 36.75 kB / 377.3 MB, free: 16.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.913e-05/0.3235, allocations: 31.38 kB / 377.3 MB, free: 16.69 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3235, allocations: 3.938 kB / 377.3 MB, free: 16.69 MB / 302.1 MB Notification: Performance of Templates: time 0.009751/0.3333, allocations: 4.234 MB / 381.6 MB, free: 16.42 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches