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.001391/0.001391, allocations: 123 kB / 17.79 MB, free: 5.246 MB / 14.72 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.001335/0.001335, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 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 1.607/1.607, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001576/0.001576, allocations: 51.92 kB / 373.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1262, allocations: 53.32 MB / 426.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004295/0.1305, allocations: 2.702 MB / 429.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.1324, allocations: 0.9505 MB / 430.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.1326, allocations: 15.88 kB / 430.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000255/0.1329, allocations: 59.39 kB / 430.5 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002651/0.1332, allocations: 63.45 kB / 430.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007347/0.1339, allocations: 251.2 kB / 430.8 MB, free: 260 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2329/0.3668, allocations: 372.9 kB / 431.2 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004449/0.3672, allocations: 131.8 kB / 431.3 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002767/0.3675, allocations: 142.6 kB / 431.5 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002206/0.3677, allocations: 148.2 kB / 431.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.417e-05/0.3678, allocations: 31.28 kB / 431.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001718/0.3679, allocations: 70.77 kB / 431.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.368, allocations: 87.55 kB / 431.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.3682, allocations: 159.1 kB / 431.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000553/0.3687, allocations: 417.5 kB / 432.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3688, allocations: 1.281 kB / 432.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3688, allocations: 1.406 kB / 432.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.3688, allocations: 1.312 kB / 432.3 MB, free: 8.426 MB / 350.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.001076/0.3698, allocations: 0.6499 MB / 433 MB, free: 7.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.3699, allocations: 8.281 kB / 433 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.407e-05/0.37, allocations: 41.67 kB / 433 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004755/0.3704, allocations: 345.6 kB / 433.4 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.3705, allocations: 23.47 kB / 433.4 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.399e-05/0.3705, allocations: 28.03 kB / 433.4 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.3718, allocations: 0.7374 MB / 434.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.3719, allocations: 2.438 kB / 434.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.3719, allocations: 12.91 kB / 434.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.3719, allocations: 7.938 kB / 434.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005819/0.3725, allocations: 218.1 kB / 434.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008004/0.3733, allocations: 0.7717 MB / 435.2 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.3744, allocations: 0.5986 MB / 435.8 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004849/0.3749, allocations: 240.2 kB / 436 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005595/0.3754, allocations: 0.5977 MB / 436.6 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.3755, allocations: 45.39 kB / 436.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.863e-06/0.3755, allocations: 0 / 436.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001287/0.3767, allocations: 0.5239 MB / 437.2 MB, free: 5.898 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.3769, allocations: 212.5 kB / 437.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.3771, allocations: 251.9 kB / 437.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.3771, allocations: 32.98 kB / 437.7 MB, free: 5.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.693e-05/0.3772, allocations: 160.3 kB / 437.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.193e-05/0.3773, allocations: 49.47 kB / 437.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.3774, allocations: 82.11 kB / 437.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.633e-05/0.3775, allocations: 346.3 kB / 438.3 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.3777, allocations: 83.86 kB / 438.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003283/0.378, allocations: 431.2 kB / 438.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004985/0.3785, allocations: 0.527 MB / 439.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-06/0.3785, allocations: 4.938 kB / 439.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008025/0.3793, allocations: 0.4922 MB / 439.8 MB, free: 3.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.3793, allocations: 9.875 kB / 439.8 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/0.3793, allocations: 13.03 kB / 439.8 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.328e-05/0.3794, allocations: 15.64 kB / 439.9 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.3797, allocations: 126.3 kB / 440 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.743e-05/0.3797, allocations: 23.34 kB / 440 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/0.38, allocations: 57.53 kB / 440.1 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.619e-05/0.38, allocations: 29.34 kB / 440.1 MB, free: 3.75 MB / 350.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.0001773/0.3802, allocations: 184.1 kB / 440.3 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006584/0.3809, allocations: 354.3 kB / 440.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007287/0.3816, allocations: 363.8 kB / 441 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.3816, allocations: 6.719 kB / 441 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.3816, allocations: 1.406 kB / 441 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.3816, allocations: 5.047 kB / 441 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004106/0.382, allocations: 336.8 kB / 441.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/0.3821, allocations: 0.875 kB / 441.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004252/0.3825, allocations: 109.8 kB / 441.4 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.3825, allocations: 4.188 kB / 441.4 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.3825, allocations: 8.016 kB / 441.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.074e-06/0.3825, allocations: 7 kB / 441.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3825, allocations: 1.062 kB / 441.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.3838, allocations: 0.7742 MB / 442.2 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.997e-05/0.3839, allocations: 129.8 kB / 442.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.733e-05/0.3839, allocations: 15.06 kB / 442.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/0.3842, allocations: 27.3 kB / 442.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.687e-05/0.3843, allocations: 8.375 kB / 442.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.3843, allocations: 13.08 kB / 442.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000216/0.3845, allocations: 183.9 kB / 442.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3845, allocations: 0 / 442.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006008/0.3851, allocations: 78.33 kB / 442.7 MB, free: 2.324 MB / 350.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.0001775/0.3853, allocations: 128.9 kB / 442.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007976/0.3861, allocations: 356.6 kB / 443.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3861, allocations: 1.062 kB / 443.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.3862, allocations: 29.41 kB / 443.2 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.3873, allocations: 298.3 kB / 443.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.3887, allocations: 0.7579 MB / 444.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.389, allocations: 0.8139 MB / 445 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.3891, allocations: 38.95 kB / 445.1 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.686e-05/0.3892, allocations: 35.67 kB / 445.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3892, allocations: 0 / 445.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of Templates: time 0.01075/0.4, allocations: 4.681 MB / 449.8 MB, free: 0.5469 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.922829359769821]