Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00166/0.00166, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00204/0.00204, allocations: 204.5 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 230.5 MB / 257.4 MB, free: 7.754 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 67.89 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2812, allocations: 53.41 MB / 431.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003986/0.2852, allocations: 1.98 MB / 433.1 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.2863, allocations: 0.5259 MB / 433.6 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.2864, allocations: 7.938 kB / 433.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.2866, allocations: 15.8 kB / 433.7 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.2867, allocations: 31.78 kB / 433.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.2871, allocations: 63.75 kB / 433.7 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000204/0.2873, allocations: 123.6 kB / 433.9 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.2874, allocations: 41.56 kB / 433.9 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.733e-05/0.2875, allocations: 51.84 kB / 434 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001041/0.2876, allocations: 47.72 kB / 434 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.93e-05/0.2877, allocations: 8 kB / 434 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.081e-05/0.2877, allocations: 12 kB / 434 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.757e-05/0.2877, allocations: 27.91 kB / 434.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.571e-05/0.2878, allocations: 55.72 kB / 434.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002718/0.2881, allocations: 127.8 kB / 434.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.2881, allocations: 0 / 434.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.2881, allocations: 3.938 kB / 434.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.592e-05/0.2881, allocations: 0 / 434.2 MB, free: 3.348 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008079/0.2889, allocations: 357.8 kB / 434.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.22e-05/0.289, allocations: 15.97 kB / 434.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.198e-05/0.2891, allocations: 42.75 kB / 434.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.373e-05/0.2891, allocations: 20.84 kB / 434.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.2894, allocations: 161.3 kB / 434.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.2894, allocations: 12.38 kB / 434.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.2895, allocations: 16.36 kB / 434.8 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005586/0.29, allocations: 238.7 kB / 435.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.2901, allocations: 0 / 435.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.2901, allocations: 12 kB / 435.1 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.2901, allocations: 7.984 kB / 435.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002613/0.2903, allocations: 87.86 kB / 435.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007518/0.2911, allocations: 0.5115 MB / 435.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003874/0.2915, allocations: 147.8 kB / 435.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.2917, allocations: 70.64 kB / 435.9 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.174e-05/0.2917, allocations: 4 kB / 435.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.2917, allocations: 38.5 kB / 436 MB, free: 1.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.2917, allocations: 0 / 436 MB, free: 1.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005566/0.2923, allocations: 185.4 kB / 436.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.2924, allocations: 114.8 kB / 436.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.2925, allocations: 134.2 kB / 436.4 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.2925, allocations: 29.7 kB / 436.4 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.549e-05/0.2926, allocations: 116 kB / 436.5 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.598e-05/0.2927, allocations: 27.84 kB / 436.5 MB, free: 0.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.338e-05/0.2927, allocations: 29.72 kB / 436.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.2929, allocations: 326.8 kB / 436.9 MB, free: 440 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.293, allocations: 32.34 kB / 436.9 MB, free: 408 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.2932, allocations: 145.2 kB / 437.1 MB, free: 216 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003571/0.2936, allocations: 189.5 kB / 437.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.2936, allocations: 3.938 kB / 437.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003759/0.294, allocations: 197.6 kB / 437.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.294, allocations: 8 kB / 437.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.294, allocations: 4 kB / 437.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.294, allocations: 7.984 kB / 437.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.2942, allocations: 47.92 kB / 437.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/0.2942, allocations: 7.938 kB / 437.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.903e-05/0.2943, allocations: 15.94 kB / 437.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.2943, allocations: 12 kB / 437.6 MB, free: 15.67 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001212/0.2944, allocations: 133.7 kB / 437.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.2946, allocations: 89.67 kB / 437.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.98e-05/0.2947, allocations: 16.7 kB / 437.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.2947, allocations: 4 kB / 437.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.2947, allocations: 0 / 437.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.2947, allocations: 0 / 437.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002825/0.295, allocations: 176.5 kB / 438 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.295, allocations: 0 / 438 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.2951, allocations: 43.91 kB / 438 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2951, allocations: 240 / 438 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.2951, allocations: 4 kB / 438 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2952, allocations: 4 kB / 438 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2952, allocations: 0 / 438 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005798/0.2957, allocations: 379.4 kB / 438.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.541e-05/0.2958, allocations: 23.8 kB / 438.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.2958, allocations: 8 kB / 438.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.2959, allocations: 4 kB / 438.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.296, allocations: 11.98 kB / 438.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.296, allocations: 4 kB / 438.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.173e-05/0.296, allocations: 102.1 kB / 438.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.296, allocations: 0 / 438.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000316/0.2964, allocations: 28 kB / 438.6 MB, free: 14.58 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0009661/0.2973, allocations: 0.9116 MB / 439.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003451/0.2977, allocations: 127.9 kB / 439.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2977, allocations: 0 / 439.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.2978, allocations: 27.92 kB / 439.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005294/0.2983, allocations: 58.73 kB / 439.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.3008, allocations: 2.05 MB / 441.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.3009, allocations: 101.5 kB / 441.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.129e-05/0.3009, allocations: 17.06 kB / 441.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.618e-05/0.301, allocations: 39.42 kB / 441.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.301, allocations: 0 / 441.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03269/0.3337, allocations: 3.374 MB / 445.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.07, allocations: 11.38 kB / 445.3 MB, free: 7.777 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000593942 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_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: 13.663378058932722]