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.0015/0.001499, allocations: 110.2 kB / 17.06 MB, free: 5.793 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.001596/0.001595, allocations: 198.8 kB / 18.01 MB, free: 4.918 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.522/1.522, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 43.92 kB / 351.3 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3475, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004097/0.3516, allocations: 2.674 MB / 403.4 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001605/0.3533, allocations: 0.9192 MB / 404.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002159/0.3535, allocations: 7.938 kB / 404.3 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002198/0.3537, allocations: 67.33 kB / 404.4 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002556/0.354, allocations: 55.45 kB / 404.4 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007069/0.3547, allocations: 238.1 kB / 404.7 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003893/0.3551, allocations: 378.9 kB / 405 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003092/0.3554, allocations: 188.8 kB / 405.2 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.3556, allocations: 139.4 kB / 405.3 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/0.3558, allocations: 143.2 kB / 405.5 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.224e-05/0.3559, allocations: 32 kB / 405.5 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.356, allocations: 71.97 kB / 405.6 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.3561, allocations: 87.67 kB / 405.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.3563, allocations: 159 kB / 405.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005008/0.3568, allocations: 430 kB / 406.3 MB, free: 3.332 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3568, allocations: 0 / 406.3 MB, free: 3.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3568, allocations: 0 / 406.3 MB, free: 3.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.3568, allocations: 0 / 406.3 MB, free: 3.332 MB / 318.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.001079/0.3579, allocations: 0.6427 MB / 406.9 MB, free: 2.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.3579, allocations: 11.89 kB / 406.9 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.049e-05/0.358, allocations: 48.66 kB / 407 MB, free: 2.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004772/0.3585, allocations: 336.1 kB / 407.3 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.607e-05/0.3585, allocations: 20.94 kB / 407.3 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.723e-05/0.3586, allocations: 28.38 kB / 407.3 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.36, allocations: 0.7444 MB / 408.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.36, allocations: 3.938 kB / 408.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.36, allocations: 12 kB / 408.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.3601, allocations: 8 kB / 408.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005662/0.3606, allocations: 219.8 kB / 408.3 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008693/0.3615, allocations: 0.7723 MB / 409.1 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.3626, allocations: 0.6275 MB / 409.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004775/0.3631, allocations: 267.5 kB / 410 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006151/0.3638, allocations: 0.5934 MB / 410.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.3638, allocations: 42.5 kB / 410.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 2.003e-06/0.3638, allocations: 0 / 410.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.00119/0.365, allocations: 0.5205 MB / 411.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/0.3652, allocations: 211.7 kB / 411.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002567/0.3654, allocations: 254.6 kB / 411.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/0.3655, allocations: 33.7 kB / 411.6 MB, free: 13.47 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.3656, allocations: 156.8 kB / 411.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.772e-05/0.3656, allocations: 51.95 kB / 411.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.3658, allocations: 86.25 kB / 411.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.3659, allocations: 342.8 kB / 412.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/0.3661, allocations: 89.06 kB / 412.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003994/0.3665, allocations: 434.9 kB / 412.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005874/0.3671, allocations: 0.5281 MB / 413.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.3671, allocations: 4 kB / 413.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007415/0.3679, allocations: 0.4933 MB / 413.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.3679, allocations: 12 kB / 413.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3679, allocations: 12 kB / 413.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.501e-05/0.3679, allocations: 16 kB / 413.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003123/0.3683, allocations: 119.7 kB / 413.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.206e-05/0.3683, allocations: 28.5 kB / 414 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.3686, allocations: 51.72 kB / 414 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.3686, allocations: 32 kB / 414 MB, free: 10.68 MB / 334.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.0001826/0.3688, allocations: 189.9 kB / 414.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006504/0.3694, allocations: 346.3 kB / 414.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007055/0.3702, allocations: 369.1 kB / 414.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.3702, allocations: 4 kB / 414.9 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.3702, allocations: 4 kB / 414.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.946e-06/0.3702, allocations: 3.984 kB / 414.9 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003953/0.3706, allocations: 345 kB / 415.3 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/0.3706, allocations: 4 kB / 415.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003922/0.371, allocations: 99.88 kB / 415.4 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.371, allocations: 4 kB / 415.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.871e-05/0.3711, allocations: 15.98 kB / 415.4 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.3711, allocations: 4 kB / 415.4 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3711, allocations: 3.938 kB / 415.4 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.3723, allocations: 0.775 MB / 416.2 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.18e-05/0.3724, allocations: 116.8 kB / 416.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.363e-05/0.3725, allocations: 15.98 kB / 416.3 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002472/0.3727, allocations: 32.05 kB / 416.3 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.3728, allocations: 7.984 kB / 416.3 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.709e-05/0.3728, allocations: 12 kB / 416.4 MB, free: 8.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001858/0.373, allocations: 186 kB / 416.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.373, allocations: 0 / 416.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005031/0.3735, allocations: 71.94 kB / 416.6 MB, free: 8.004 MB / 334.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.0001799/0.3737, allocations: 131 kB / 416.7 MB, free: 7.867 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006912/0.3744, allocations: 357.6 kB / 417.1 MB, free: 7.523 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.3744, allocations: 4 kB / 417.1 MB, free: 7.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.3745, allocations: 31.91 kB / 417.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000986/0.3755, allocations: 311.7 kB / 417.4 MB, free: 7.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.3769, allocations: 0.7577 MB / 418.2 MB, free: 6.383 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.3773, allocations: 0.812 MB / 419 MB, free: 5.547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.3774, allocations: 39.27 kB / 419 MB, free: 5.504 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.034e-05/0.3775, allocations: 35.42 kB / 419.1 MB, free: 5.469 MB / 334.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3775, allocations: 0 / 419.1 MB, free: 5.469 MB / 334.1 MB Notification: Performance of Templates: time 0.009656/0.3872, allocations: 4.656 MB / 423.7 MB, free: 0.8438 MB / 334.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