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.0009053/0.0009053, allocations: 79.7 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.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.0009199/0.0009199, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9399/0.9399, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_1_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_1_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 1.973e-06/1.973e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.776e-05/2.974e-05, allocations: 6.281 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.003376/0.003406, allocations: 2.567 MB / 327.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.004662, allocations: 0.9112 MB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/0.004836, allocations: 11.94 kB / 328 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001911/0.005027, allocations: 59.33 kB / 328.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002545/0.005282, allocations: 71.38 kB / 328.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006008/0.005883, allocations: 246.6 kB / 328.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.006259, allocations: 390.8 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002696/0.006529, allocations: 121.4 kB / 328.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.006739, allocations: 199.5 kB / 329.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.006889, allocations: 107.6 kB / 329.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.886e-05/0.006938, allocations: 32 kB / 329.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.007056, allocations: 67.97 kB / 329.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.00718, allocations: 91.66 kB / 329.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.827e-05/0.007268, allocations: 107.6 kB / 329.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004329/0.007701, allocations: 426.6 kB / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.007704, allocations: 0 / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.007706, allocations: 0 / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.007711, allocations: 4 kB / 329.9 MB, free: 10.57 MB / 298.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.000785/0.008496, allocations: 0.5674 MB / 330.5 MB, free: 9.965 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.008543, allocations: 16.02 kB / 330.5 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.541e-05/0.008599, allocations: 62.73 kB / 330.6 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.933e-05/0.008658, allocations: 40.7 kB / 330.6 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003683/0.009026, allocations: 273.2 kB / 330.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.00905, allocations: 21.03 kB / 330.9 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.304e-05/0.009093, allocations: 36.36 kB / 330.9 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009456/0.01004, allocations: 0.7971 MB / 331.7 MB, free: 8.648 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/0.01007, allocations: 7.938 kB / 331.7 MB, free: 8.641 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.412e-05/0.01009, allocations: 8 kB / 331.7 MB, free: 8.633 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.0101, allocations: 8 kB / 331.7 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003472/0.01045, allocations: 215.8 kB / 331.9 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000705/0.01115, allocations: 0.6528 MB / 332.6 MB, free: 7.699 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006883/0.01184, allocations: 465.2 kB / 333.1 MB, free: 7.207 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002933/0.01213, allocations: 250.9 kB / 333.3 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/0.01241, allocations: 67.92 kB / 333.4 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.01244, allocations: 42.5 kB / 333.4 MB, free: 6.832 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 1.823e-06/0.01244, allocations: 0 / 333.4 MB, free: 6.832 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.000754/0.0132, allocations: 0.5285 MB / 333.9 MB, free: 6.297 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.837e-05/0.01329, allocations: 203.9 kB / 334.1 MB, free: 6.055 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.01347, allocations: 257.9 kB / 334.4 MB, free: 5.789 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.01349, allocations: 33.7 kB / 334.4 MB, free: 5.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.897e-05/0.01357, allocations: 152.9 kB / 334.6 MB, free: 5.598 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/0.0136, allocations: 35.73 kB / 334.6 MB, free: 5.562 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.221e-05/0.01364, allocations: 33.7 kB / 334.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.448e-05/0.01373, allocations: 338.8 kB / 335 MB, free: 5.184 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.131e-05/0.0138, allocations: 47.97 kB / 335 MB, free: 5.137 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/0.01393, allocations: 185.5 kB / 335.2 MB, free: 4.906 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000169/0.0141, allocations: 161.3 kB / 335.4 MB, free: 4.715 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.0141, allocations: 4.109 kB / 335.4 MB, free: 4.711 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002224/0.01432, allocations: 205.2 kB / 335.6 MB, free: 4.504 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.01434, allocations: 12.25 kB / 335.6 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.01434, allocations: 8 kB / 335.6 MB, free: 4.484 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.01436, allocations: 4 kB / 335.6 MB, free: 4.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.698e-05/0.01444, allocations: 39.91 kB / 335.6 MB, free: 4.441 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.01445, allocations: 4 kB / 335.6 MB, free: 4.438 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.495e-05/0.01453, allocations: 23.88 kB / 335.6 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-06/0.01453, allocations: 8 kB / 335.7 MB, free: 4.406 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.0001262/0.01466, allocations: 156.2 kB / 335.8 MB, free: 4.246 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003957/0.01506, allocations: 358 kB / 336.2 MB, free: 3.891 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004337/0.01549, allocations: 356.8 kB / 336.5 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.0155, allocations: 4 kB / 336.5 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.0155, allocations: 8 kB / 336.5 MB, free: 3.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.463e-06/0.01551, allocations: 3.984 kB / 336.5 MB, free: 3.516 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000253/0.01576, allocations: 256.4 kB / 336.8 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.01577, allocations: 8 kB / 336.8 MB, free: 3.215 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002189/0.01599, allocations: 99.88 kB / 336.9 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.01599, allocations: 3.938 kB / 336.9 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.01601, allocations: 11.98 kB / 336.9 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.01601, allocations: 7.938 kB / 336.9 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01601, allocations: 0 / 336.9 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007659/0.01678, allocations: 0.777 MB / 337.7 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.937e-05/0.01682, allocations: 43.66 kB / 337.7 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.384e-05/0.01685, allocations: 19.94 kB / 337.7 MB, free: 2.238 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/0.01698, allocations: 31.89 kB / 337.8 MB, free: 2.207 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.701e-05/0.01702, allocations: 15.92 kB / 337.8 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.01704, allocations: 8 kB / 337.8 MB, free: 2.184 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001181/0.01716, allocations: 185.3 kB / 338 MB, free: 2 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01716, allocations: 0 / 338 MB, free: 2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002636/0.01742, allocations: 63.94 kB / 338 MB, free: 1.938 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.001011/0.01844, allocations: 1.345 MB / 339.4 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003469/0.01878, allocations: 223.3 kB / 339.6 MB, free: 352 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.01878, allocations: 0 / 339.6 MB, free: 352 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.952e-05/0.01885, allocations: 28.59 kB / 339.6 MB, free: 324 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006917/0.01955, allocations: 298.7 kB / 339.9 MB, free: 20 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002447/0.02199, allocations: 2.787 MB / 342.7 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.02214, allocations: 205.8 kB / 342.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.13e-05/0.02221, allocations: 26.97 kB / 342.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.02233, allocations: 108.5 kB / 343 MB, free: 12.71 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.02233, allocations: 3.938 kB / 343 MB, free: 12.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02462/0.04695, allocations: 8.68 MB / 351.7 MB, free: 4.211 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.996/7.043, allocations: 1.688 kB / 351.7 MB, free: 4.211 MB / 314.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv","/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] "Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.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.917664061300457]