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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 103.7 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009594/0.0009596, allocations: 48.33 kB / 300.1 MB, free: 6.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0915/0.09247, allocations: 49.45 MB / 349.6 MB, free: 4.777 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.003825/0.09633, allocations: 2.704 MB / 352.3 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.09774, allocations: 0.8921 MB / 353.2 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.09796, allocations: 7.938 kB / 353.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.09816, allocations: 47.58 kB / 353.2 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000213/0.09839, allocations: 47.64 kB / 353.3 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006184/0.09901, allocations: 212.5 kB / 353.5 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003496/0.09937, allocations: 378.9 kB / 353.8 MB, free: 488 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002925/0.09967, allocations: 184.8 kB / 354 MB, free: 300 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.09982, allocations: 139.4 kB / 354.2 MB, free: 160 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.09999, allocations: 155.1 kB / 354.3 MB, free: 4 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.098e-05/0.1001, allocations: 36.05 kB / 354.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000116/0.1002, allocations: 67.92 kB / 354.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.573e-05/0.1003, allocations: 75.75 kB / 354.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.1004, allocations: 167 kB / 354.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004042/0.1008, allocations: 398.9 kB / 355 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.1008, allocations: 3.938 kB / 355 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1009, allocations: 4 kB / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1009, allocations: 0 / 355.1 MB, free: 15.27 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.000993/0.1019, allocations: 0.6352 MB / 355.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.1019, allocations: 15.89 kB / 355.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.851e-05/0.102, allocations: 36.47 kB / 355.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000354/0.1024, allocations: 331.8 kB / 356.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.1024, allocations: 20.94 kB / 356.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.458e-05/0.1024, allocations: 24.38 kB / 356.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.1038, allocations: 0.7559 MB / 356.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.1038, allocations: 7.984 kB / 356.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.1038, allocations: 11.98 kB / 356.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.1039, allocations: 8 kB / 356.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000524/0.1044, allocations: 215.8 kB / 357.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008084/0.1052, allocations: 0.772 MB / 357.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.1062, allocations: 0.6217 MB / 358.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004441/0.1067, allocations: 267.8 kB / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008174/0.1075, allocations: 0.5935 MB / 359.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.1076, allocations: 50.48 kB / 359.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.335e-06/0.1076, allocations: 0 / 359.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001202/0.1088, allocations: 0.5322 MB / 359.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.1089, allocations: 203.9 kB / 360.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002587/0.1092, allocations: 250.8 kB / 360.4 MB, free: 9.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.1092, allocations: 37.7 kB / 360.4 MB, free: 9.426 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.1094, allocations: 156.7 kB / 360.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.953e-05/0.1094, allocations: 47.58 kB / 360.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.1095, allocations: 86.2 kB / 360.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1097, allocations: 346.8 kB / 361 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.1099, allocations: 81.06 kB / 361.1 MB, free: 8.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005068/0.1104, allocations: 431 kB / 361.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006828/0.1111, allocations: 0.5324 MB / 362.1 MB, free: 7.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.1111, allocations: 0 / 362.1 MB, free: 7.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008133/0.112, allocations: 0.4927 MB / 362.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.112, allocations: 9 kB / 362.6 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.112, allocations: 12 kB / 362.6 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.882e-05/0.1121, allocations: 20 kB / 362.6 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003289/0.1124, allocations: 123.8 kB / 362.7 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.167e-05/0.1124, allocations: 19.94 kB / 362.7 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002794/0.1127, allocations: 55.52 kB / 362.8 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.411e-05/0.1128, allocations: 35.94 kB / 362.8 MB, free: 6.652 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.0002681/0.113, allocations: 185.5 kB / 363 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006516/0.1137, allocations: 346.1 kB / 363.3 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007443/0.1145, allocations: 364.4 kB / 363.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.1145, allocations: 7.984 kB / 363.7 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1145, allocations: 0 / 363.7 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1145, allocations: 4 kB / 363.7 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003803/0.1149, allocations: 341 kB / 364 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.1149, allocations: 3.984 kB / 364.1 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/0.1153, allocations: 99.81 kB / 364.1 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.1153, allocations: 4 kB / 364.2 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.1153, allocations: 12 kB / 364.2 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.1153, allocations: 4 kB / 364.2 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1154, allocations: 0 / 364.2 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.1166, allocations: 0.767 MB / 364.9 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.763e-05/0.1167, allocations: 128.6 kB / 365.1 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.684e-05/0.1167, allocations: 19.94 kB / 365.1 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.117, allocations: 23.97 kB / 365.1 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.843e-05/0.117, allocations: 8 kB / 365.1 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.84e-05/0.1171, allocations: 8 kB / 365.1 MB, free: 4.246 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001739/0.1173, allocations: 186 kB / 365.3 MB, free: 4.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1173, allocations: 0 / 365.3 MB, free: 4.062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000574/0.1178, allocations: 72 kB / 365.4 MB, free: 3.992 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.0002341/0.1181, allocations: 146.5 kB / 365.5 MB, free: 3.844 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008081/0.1189, allocations: 384 kB / 365.9 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.1189, allocations: 4 kB / 365.9 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.35e-05/0.119, allocations: 33.41 kB / 365.9 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009852/0.12, allocations: 314.9 kB / 366.2 MB, free: 3.117 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.1215, allocations: 0.861 MB / 367.1 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.1218, allocations: 0.8081 MB / 367.9 MB, free: 1.391 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.1219, allocations: 47.27 kB / 367.9 MB, free: 1.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.697e-05/0.122, allocations: 35.42 kB / 368 MB, free: 1.309 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.122, allocations: 0 / 368 MB, free: 1.309 MB / 302.1 MB Notification: Performance of Templates: time 0.1519/0.2739, allocations: 4.499 MB / 372.5 MB, free: 24.94 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches