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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 119 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001916/0.001916, allocations: 197.2 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.652/1.652, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 51.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.157/0.1593, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.006893/0.1662, allocations: 2.689 MB / 420.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.1692, allocations: 0.9192 MB / 421.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004456/0.1697, allocations: 15.88 kB / 421.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003529/0.17, allocations: 59.33 kB / 421.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004497/0.1705, allocations: 63.5 kB / 421.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.1716, allocations: 243.5 kB / 421.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007404/0.1723, allocations: 378.9 kB / 422.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004156/0.1727, allocations: 132.8 kB / 422.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002796/0.173, allocations: 143.4 kB / 422.4 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.1733, allocations: 155.2 kB / 422.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.505e-05/0.1734, allocations: 32 kB / 422.6 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.1736, allocations: 67.97 kB / 422.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.1738, allocations: 83.62 kB / 422.7 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.174, allocations: 163.1 kB / 422.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008627/0.1749, allocations: 414.2 kB / 423.3 MB, free: 7.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1749, allocations: 4 kB / 423.3 MB, free: 7.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1749, allocations: 4 kB / 423.3 MB, free: 7.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.878e-05/0.1749, allocations: 7.875 kB / 423.3 MB, free: 7.078 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.001723/0.1766, allocations: 0.6427 MB / 423.9 MB, free: 6.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.006e-05/0.1767, allocations: 16.02 kB / 424 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.1768, allocations: 62.67 kB / 424 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.1769, allocations: 48.66 kB / 424.1 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008325/0.1778, allocations: 332.2 kB / 424.4 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.183e-05/0.1778, allocations: 16.94 kB / 424.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.1779, allocations: 32.12 kB / 424.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/0.1802, allocations: 0.7406 MB / 425.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.1802, allocations: 0 / 425.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.99e-05/0.1803, allocations: 15.94 kB / 425.2 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.1803, allocations: 8 kB / 425.2 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009381/0.1812, allocations: 211.8 kB / 425.4 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.1828, allocations: 0.78 MB / 426.2 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/0.1847, allocations: 0.6093 MB / 426.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008182/0.1855, allocations: 258.8 kB / 427 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001168/0.1867, allocations: 0.5856 MB / 427.6 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.695e-05/0.1867, allocations: 46.5 kB / 427.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 4.99e-06/0.1868, allocations: 0 / 427.7 MB, free: 2.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002242/0.189, allocations: 0.5244 MB / 428.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002455/0.1892, allocations: 211.7 kB / 428.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005251/0.1898, allocations: 254.6 kB / 428.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.777e-05/0.1898, allocations: 29.7 kB / 428.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.19, allocations: 152.9 kB / 428.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.1901, allocations: 51.72 kB / 428.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.1903, allocations: 86.38 kB / 429 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002707/0.1906, allocations: 346.8 kB / 429.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00034/0.1909, allocations: 85.06 kB / 429.4 MB, free: 464 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007698/0.1917, allocations: 434.9 kB / 429.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.1928, allocations: 0.5281 MB / 430.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.1928, allocations: 4 kB / 430.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001524/0.1944, allocations: 0.4894 MB / 430.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/0.1944, allocations: 12 kB / 430.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/0.1944, allocations: 12 kB / 430.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.019e-05/0.1945, allocations: 12 kB / 430.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005786/0.1951, allocations: 119.8 kB / 431 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.733e-05/0.1951, allocations: 24.45 kB / 431 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005215/0.1956, allocations: 59.77 kB / 431.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.356e-05/0.1957, allocations: 32 kB / 431.1 MB, free: 14.4 MB / 366.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.000423/0.1961, allocations: 197.8 kB / 431.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001174/0.1973, allocations: 338.7 kB / 431.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/0.1985, allocations: 368.8 kB / 432 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/0.1985, allocations: 4 kB / 432 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.1985, allocations: 4 kB / 432 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.1986, allocations: 3.984 kB / 432 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008034/0.1994, allocations: 337.2 kB / 432.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-05/0.1994, allocations: 8 kB / 432.3 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007049/0.2001, allocations: 99.88 kB / 432.4 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.345e-05/0.2001, allocations: 7.984 kB / 432.4 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.091e-05/0.2001, allocations: 8 kB / 432.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.105e-05/0.2002, allocations: 4 kB / 432.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.2002, allocations: 3.938 kB / 432.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002281/0.2024, allocations: 0.775 MB / 433.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002007/0.2026, allocations: 120.8 kB / 433.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.807e-05/0.2027, allocations: 15.98 kB / 433.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004222/0.2032, allocations: 19.98 kB / 433.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.072e-05/0.2032, allocations: 16.05 kB / 433.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.605e-05/0.2033, allocations: 8 kB / 433.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003474/0.2036, allocations: 193.9 kB / 433.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2036, allocations: 0 / 433.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008123/0.2044, allocations: 75.94 kB / 433.7 MB, free: 11.72 MB / 366.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.001972/0.2064, allocations: 1.352 MB / 435 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009165/0.2073, allocations: 353.1 kB / 435.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2073, allocations: 0 / 435.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.2074, allocations: 27.97 kB / 435.4 MB, free: 9.969 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.2086, allocations: 299 kB / 435.7 MB, free: 9.672 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005862/0.2144, allocations: 3.817 MB / 439.5 MB, free: 5.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.2149, allocations: 0.8081 MB / 440.3 MB, free: 4.598 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001569/0.2151, allocations: 43.27 kB / 440.4 MB, free: 4.551 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002286/0.2153, allocations: 111.4 kB / 440.5 MB, free: 4.441 MB / 366.1 MB Notification: Performance of SimCode: time 1.573e-06/0.2153, allocations: 0 / 440.5 MB, free: 4.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2734/0.4887, allocations: 8.107 MB / 448.6 MB, free: 30.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.205/9.694, allocations: 1.125 kB / 448.6 MB, free: 30.02 MB / 366.1 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009802 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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv","/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) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w [Calling sys.exit(0), Time elapsed: 12.632803140208125]