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: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002093/0.002092, allocations: 104 kB / 16.92 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.00174/0.00174, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.773/1.773, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 42.95 kB / 300.7 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1654, allocations: 49.44 MB / 350.1 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.005642/0.1711, allocations: 2.677 MB / 352.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.1733, allocations: 0.9153 MB / 353.7 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002438/0.1736, allocations: 11.94 kB / 353.8 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002509/0.1738, allocations: 59.39 kB / 353.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002571/0.1741, allocations: 59.45 kB / 353.9 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007222/0.1748, allocations: 237.3 kB / 354.1 MB, free: 376 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004914/0.1753, allocations: 383 kB / 354.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000434/0.1758, allocations: 192.7 kB / 354.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.176, allocations: 127.5 kB / 354.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.1762, allocations: 151.2 kB / 354.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.252e-05/0.1763, allocations: 32 kB / 355 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.1764, allocations: 67.91 kB / 355 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.1766, allocations: 87.73 kB / 355.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.1768, allocations: 163 kB / 355.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005793/0.1773, allocations: 402.9 kB / 355.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1774, allocations: 0 / 355.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1774, allocations: 0 / 355.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.1774, allocations: 0 / 355.7 MB, free: 14.79 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.001321/0.1787, allocations: 0.643 MB / 356.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.976e-05/0.1788, allocations: 8.031 kB / 356.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/0.1789, allocations: 62.72 kB / 356.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001827/0.1791, allocations: 40.47 kB / 356.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006254/0.1797, allocations: 323.9 kB / 356.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.21e-05/0.1798, allocations: 24.94 kB / 356.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.464e-05/0.1798, allocations: 36.11 kB / 356.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.1815, allocations: 0.7442 MB / 357.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.1816, allocations: 3.984 kB / 357.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.815e-05/0.1816, allocations: 19.98 kB / 357.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.1816, allocations: 8 kB / 357.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006582/0.1823, allocations: 215.8 kB / 357.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.1835, allocations: 0.772 MB / 358.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.1848, allocations: 0.6271 MB / 359.2 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005678/0.1853, allocations: 267.8 kB / 359.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009417/0.1863, allocations: 0.5972 MB / 360 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.1864, allocations: 42.55 kB / 360.1 MB, free: 9.945 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.274e-06/0.1864, allocations: 0 / 360.1 MB, free: 9.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001322/0.1877, allocations: 0.528 MB / 360.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/0.1879, allocations: 207.9 kB / 360.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002707/0.1881, allocations: 250.6 kB / 361.1 MB, free: 8.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.669e-05/0.1882, allocations: 33.7 kB / 361.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.1883, allocations: 156.8 kB / 361.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.175e-05/0.1884, allocations: 51.58 kB / 361.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.1885, allocations: 78.27 kB / 361.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.1887, allocations: 346.8 kB / 361.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001863/0.1889, allocations: 85.06 kB / 361.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004997/0.1894, allocations: 438.9 kB / 362.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006816/0.1901, allocations: 0.5246 MB / 362.7 MB, free: 6.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.1901, allocations: 4 kB / 362.7 MB, free: 6.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000889/0.191, allocations: 0.4969 MB / 363.2 MB, free: 6.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.191, allocations: 8 kB / 363.3 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/0.1911, allocations: 12 kB / 363.3 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.562e-05/0.1911, allocations: 16 kB / 363.3 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000333/0.1914, allocations: 124.4 kB / 363.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.782e-05/0.1915, allocations: 27.92 kB / 363.4 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002788/0.1918, allocations: 47.62 kB / 363.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.405e-05/0.1918, allocations: 28 kB / 363.5 MB, free: 6.102 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.0002919/0.1921, allocations: 193.5 kB / 363.7 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007802/0.1929, allocations: 338.1 kB / 364 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008679/0.1938, allocations: 369.1 kB / 364.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.1938, allocations: 8 kB / 364.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.1938, allocations: 0 / 364.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.1938, allocations: 0 / 364.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005144/0.1944, allocations: 349 kB / 364.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.894e-06/0.1944, allocations: 0 / 364.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004189/0.1948, allocations: 99.88 kB / 364.8 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-06/0.1948, allocations: 4 kB / 364.8 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.437e-05/0.1949, allocations: 12 kB / 364.8 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.1949, allocations: 3.938 kB / 364.8 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.316e-06/0.1949, allocations: 8 kB / 364.9 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.1964, allocations: 0.767 MB / 365.6 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.1966, allocations: 124.5 kB / 365.7 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.724e-05/0.1966, allocations: 12 kB / 365.8 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.1969, allocations: 35.97 kB / 365.8 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/0.197, allocations: 4 kB / 365.8 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.891e-05/0.197, allocations: 12 kB / 365.8 MB, free: 3.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002515/0.1973, allocations: 189.9 kB / 366 MB, free: 3.496 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1973, allocations: 0 / 366 MB, free: 3.496 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006253/0.1979, allocations: 68 kB / 366.1 MB, free: 3.43 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.002084/0.2, allocations: 1.363 MB / 367.4 MB, free: 2.035 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009947/0.201, allocations: 388.1 kB / 367.8 MB, free: 1.656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2011, allocations: 0 / 367.8 MB, free: 1.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.2012, allocations: 29.47 kB / 367.8 MB, free: 1.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.2023, allocations: 310 kB / 368.1 MB, free: 1.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2802/0.4825, allocations: 3.816 MB / 372 MB, free: 23.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000666/0.4833, allocations: 0.8144 MB / 372.8 MB, free: 22.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002736/0.4835, allocations: 41.66 kB / 372.8 MB, free: 22.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003333/0.4839, allocations: 111.1 kB / 372.9 MB, free: 22.66 MB / 302.1 MB Notification: Performance of SimCode: time 2.635e-06/0.4839, allocations: 0 / 372.9 MB, free: 22.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03434/0.5182, allocations: 7.927 MB / 380.8 MB, free: 21.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.528/10.05, allocations: 5.109 kB / 380.8 MB, free: 21.07 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > 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