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.001595/0.001595, allocations: 114.4 kB / 17.74 MB, free: 5.359 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.001788/0.001788, allocations: 180.5 kB / 18.66 MB, free: 4.445 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.407/1.407, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 47.92 kB / 351.9 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2664, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004105/0.2706, allocations: 2.68 MB / 404.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.2723, allocations: 0.9142 MB / 405 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.2725, allocations: 19.81 kB / 405 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002094/0.2727, allocations: 55.39 kB / 405.1 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002174/0.2729, allocations: 59.45 kB / 405.1 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006846/0.2736, allocations: 239.5 kB / 405.3 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004115/0.274, allocations: 378.9 kB / 405.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003292/0.2744, allocations: 180.8 kB / 405.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.2746, allocations: 139.4 kB / 406 MB, free: 4.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.2748, allocations: 151.2 kB / 406.2 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.642e-05/0.2748, allocations: 35.94 kB / 406.2 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.275, allocations: 67.95 kB / 406.3 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.2751, allocations: 75.75 kB / 406.4 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.2753, allocations: 167 kB / 406.5 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004655/0.2757, allocations: 419.6 kB / 406.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.2758, allocations: 4 kB / 406.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2758, allocations: 3.938 kB / 406.9 MB, free: 3.328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.2758, allocations: 0 / 406.9 MB, free: 3.328 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.001087/0.2769, allocations: 0.6391 MB / 407.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.2769, allocations: 15.89 kB / 407.6 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.277, allocations: 40.47 kB / 407.6 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004769/0.2775, allocations: 327.9 kB / 407.9 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.83e-05/0.2776, allocations: 24.94 kB / 408 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.146e-05/0.2776, allocations: 24.38 kB / 408 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.279, allocations: 0.7522 MB / 408.7 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.279, allocations: 0 / 408.7 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.2791, allocations: 15.94 kB / 408.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.2791, allocations: 4 kB / 408.8 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000569/0.2797, allocations: 215.8 kB / 409 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008759/0.2806, allocations: 0.7759 MB / 409.8 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.2817, allocations: 0.6229 MB / 410.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004817/0.2822, allocations: 271.5 kB / 410.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007065/0.2829, allocations: 0.5934 MB / 411.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.283, allocations: 38.56 kB / 411.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 4.668e-06/0.283, allocations: 0 / 411.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001274/0.2842, allocations: 0.5213 MB / 411.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001649/0.2844, allocations: 215.5 kB / 412 MB, free: 13.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.2847, allocations: 250.6 kB / 412.2 MB, free: 13.53 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.332e-05/0.2848, allocations: 41.64 kB / 412.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.2849, allocations: 152.9 kB / 412.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6e-05/0.285, allocations: 51.61 kB / 412.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.2851, allocations: 82.25 kB / 412.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.2852, allocations: 346.8 kB / 412.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.2854, allocations: 85.17 kB / 413 MB, free: 12.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004559/0.2859, allocations: 438.9 kB / 413.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006165/0.2865, allocations: 0.5323 MB / 414 MB, free: 11.46 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.2865, allocations: 4 kB / 414 MB, free: 11.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008025/0.2874, allocations: 0.489 MB / 414.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.2874, allocations: 12 kB / 414.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.2874, allocations: 12 kB / 414.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.441e-05/0.2874, allocations: 12.78 kB / 414.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003282/0.2878, allocations: 119.8 kB / 414.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.526e-05/0.2878, allocations: 27.92 kB / 414.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.2881, allocations: 51.58 kB / 414.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.2881, allocations: 35.94 kB / 414.7 MB, free: 10.7 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.000221/0.2884, allocations: 181.6 kB / 414.9 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000648/0.289, allocations: 350.1 kB / 415.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007273/0.2897, allocations: 361.2 kB / 415.6 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.2898, allocations: 4 kB / 415.6 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.2898, allocations: 3.938 kB / 415.6 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.2898, allocations: 7.984 kB / 415.6 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004198/0.2902, allocations: 341 kB / 415.9 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.523e-06/0.2902, allocations: 0 / 415.9 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003976/0.2906, allocations: 107.9 kB / 416 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.2907, allocations: 0 / 416 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.2907, allocations: 11.98 kB / 416 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.2907, allocations: 4 kB / 416.1 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2907, allocations: 0 / 416.1 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.292, allocations: 0.7863 MB / 416.8 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.36e-05/0.2921, allocations: 108.6 kB / 416.9 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.827e-05/0.2922, allocations: 19.98 kB / 417 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002546/0.2924, allocations: 28.05 kB / 417 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.271e-05/0.2925, allocations: 7.984 kB / 417 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-05/0.2925, allocations: 12 kB / 417 MB, free: 8.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001744/0.2927, allocations: 178 kB / 417.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2927, allocations: 0 / 417.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000515/0.2932, allocations: 83.89 kB / 417.3 MB, free: 8.023 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.000203/0.2934, allocations: 127.2 kB / 417.4 MB, free: 7.891 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007075/0.2942, allocations: 361 kB / 417.7 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2942, allocations: 0 / 417.7 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.2943, allocations: 31.91 kB / 417.8 MB, free: 7.512 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.2954, allocations: 308.4 kB / 418.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.297, allocations: 0.786 MB / 418.9 MB, free: 6.379 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004639/0.2974, allocations: 0.8081 MB / 419.7 MB, free: 5.547 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.764e-05/0.2975, allocations: 35.42 kB / 419.7 MB, free: 5.512 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2975, allocations: 4 kB / 419.7 MB, free: 5.508 MB / 334.1 MB Notification: Performance of Templates: time 0.007251/0.3048, allocations: 4.5 MB / 424.2 MB, free: 1.016 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/jenkins1/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/jenkins1/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