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.001293/0.001293, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001504/0.001504, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9073/0.9073, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 2.745e-06/2.745e-06, allocations: 3.938 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.864e-05/3.139e-05, allocations: 2.281 kB / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.003444/0.003476, allocations: 2.525 MB / 320.9 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.004894, allocations: 0.8762 MB / 321.8 MB, free: 2.945 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/0.00508, allocations: 11.94 kB / 321.8 MB, free: 2.934 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002061/0.005286, allocations: 71.25 kB / 321.9 MB, free: 2.863 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002389/0.005525, allocations: 63.39 kB / 322 MB, free: 2.801 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005631/0.006088, allocations: 250.8 kB / 322.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003211/0.006409, allocations: 394.8 kB / 322.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002305/0.00664, allocations: 129.4 kB / 322.7 MB, free: 2.043 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/0.006832, allocations: 199.5 kB / 322.9 MB, free: 1.848 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.006972, allocations: 107.6 kB / 323 MB, free: 1.742 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.091e-05/0.007013, allocations: 32 kB / 323 MB, free: 1.711 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.007113, allocations: 67.95 kB / 323.1 MB, free: 1.645 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.333e-05/0.007207, allocations: 87.67 kB / 323.2 MB, free: 1.559 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.065e-05/0.007287, allocations: 95.69 kB / 323.3 MB, free: 1.465 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003904/0.007678, allocations: 438.5 kB / 323.7 MB, free: 1.035 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.007681, allocations: 0 / 323.7 MB, free: 1.035 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.007683, allocations: 0 / 323.7 MB, free: 1.035 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.007688, allocations: 4 kB / 323.7 MB, free: 1.031 MB / 282.7 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.0007636/0.008452, allocations: 0.5675 MB / 324.3 MB, free: 440 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.008491, allocations: 8.922 kB / 324.3 MB, free: 432 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.358e-05/0.008545, allocations: 62.72 kB / 324.4 MB, free: 360 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.637e-05/0.008601, allocations: 44.66 kB / 324.4 MB, free: 316 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004093/0.009011, allocations: 273.2 kB / 324.7 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.354e-05/0.009044, allocations: 21.11 kB / 324.7 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.895e-05/0.009083, allocations: 36.33 kB / 324.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009408/0.01002, allocations: 0.7892 MB / 325.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.01004, allocations: 3.938 kB / 325.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.01007, allocations: 15.98 kB / 325.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.01008, allocations: 4 kB / 325.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003387/0.01042, allocations: 223.8 kB / 325.8 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006786/0.0111, allocations: 0.6526 MB / 326.4 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000711/0.01181, allocations: 452.7 kB / 326.9 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.01209, allocations: 252.6 kB / 327.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002682/0.01236, allocations: 59.94 kB / 327.2 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.01238, allocations: 46.48 kB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 1.904e-06/0.01239, allocations: 0 / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.001018/0.0134, allocations: 0.5281 MB / 327.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.01352, allocations: 211.9 kB / 327.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.01371, allocations: 249.9 kB / 328.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.01374, allocations: 37.64 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.797e-05/0.01382, allocations: 157 kB / 328.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.861e-05/0.01385, allocations: 39.77 kB / 328.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.0139, allocations: 33.72 kB / 328.4 MB, free: 12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.338e-05/0.01399, allocations: 334.8 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.98e-05/0.01407, allocations: 47.95 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.01421, allocations: 186.5 kB / 329 MB, free: 11.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.01438, allocations: 169.3 kB / 329.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.01438, allocations: 0 / 329.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002465/0.01463, allocations: 205.6 kB / 329.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.01465, allocations: 10.44 kB / 329.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.01466, allocations: 4 kB / 329.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.01467, allocations: 4 kB / 329.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.01477, allocations: 39.92 kB / 329.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.01478, allocations: 4.312 kB / 329.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.726e-05/0.01486, allocations: 19.94 kB / 329.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.01487, allocations: 8.047 kB / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (18): * Single equations (assignments): 18 * 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.0001452/0.01502, allocations: 169.7 kB / 329.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000404/0.01542, allocations: 346.2 kB / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004926/0.01591, allocations: 357.3 kB / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.01592, allocations: 4 kB / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.01593, allocations: 4 kB / 330.3 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.01593, allocations: 3.984 kB / 330.3 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002587/0.01619, allocations: 260.4 kB / 330.6 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.0162, allocations: 7.938 kB / 330.6 MB, free: 9.695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.01641, allocations: 103.9 kB / 330.7 MB, free: 9.594 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.251e-06/0.01642, allocations: 7.938 kB / 330.7 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.01644, allocations: 12 kB / 330.7 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.01644, allocations: 7.938 kB / 330.7 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.01645, allocations: 4 kB / 330.7 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008148/0.01726, allocations: 0.7613 MB / 331.5 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.252e-05/0.0173, allocations: 39.8 kB / 331.5 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.7e-05/0.01734, allocations: 27.92 kB / 331.5 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.01747, allocations: 23.98 kB / 331.6 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.862e-05/0.01752, allocations: 7.984 kB / 331.6 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.01754, allocations: 12 kB / 331.6 MB, free: 8.672 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001261/0.01767, allocations: 185.2 kB / 331.8 MB, free: 8.488 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01767, allocations: 3.938 kB / 331.8 MB, free: 8.484 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002825/0.01795, allocations: 59.89 kB / 331.8 MB, free: 8.426 MB / 298.7 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.001168/0.01912, allocations: 1.341 MB / 333.2 MB, free: 7.055 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003726/0.01949, allocations: 239.1 kB / 333.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.01949, allocations: 4 kB / 333.4 MB, free: 6.816 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.287e-05/0.01955, allocations: 27.92 kB / 333.4 MB, free: 6.789 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006828/0.02023, allocations: 286.7 kB / 333.7 MB, free: 6.504 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.02305, allocations: 2.798 MB / 336.5 MB, free: 3.539 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001393/0.02319, allocations: 209.7 kB / 336.7 MB, free: 3.316 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.734e-05/0.02326, allocations: 30.97 kB / 336.7 MB, free: 3.285 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.02338, allocations: 104.5 kB / 336.8 MB, free: 3.184 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.02338, allocations: 0 / 336.8 MB, free: 3.184 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02355/0.04692, allocations: 8.684 MB / 345.5 MB, free: 10.68 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.963/7.01, allocations: 14.67 kB / 345.5 MB, free: 10.67 MB / 314.7 MB " [Timeout remaining time 653] (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/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) [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: 8.889077548868954]