Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001489/0.001489, 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.001523/0.001523, allocations: 203.8 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.425/1.425, allocations: 230.5 MB / 257.4 MB, free: 7.727 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 67.91 kB / 377.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2956, allocations: 53.4 MB / 431.1 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003418/0.299, allocations: 1.98 MB / 433.1 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000996/0.3, allocations: 0.4987 MB / 433.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.3001, allocations: 11.88 kB / 433.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.3002, allocations: 15.8 kB / 433.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.632e-05/0.3003, allocations: 23.78 kB / 433.7 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003253/0.3006, allocations: 67.8 kB / 433.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001787/0.3008, allocations: 123.5 kB / 433.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.3009, allocations: 33.61 kB / 433.9 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.341e-05/0.301, allocations: 51.78 kB / 433.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.3011, allocations: 55.7 kB / 434 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.624e-05/0.3011, allocations: 8 kB / 434 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.449e-05/0.3012, allocations: 12 kB / 434 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.578e-05/0.3012, allocations: 23.92 kB / 434 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.465e-05/0.3013, allocations: 51.72 kB / 434.1 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002396/0.3015, allocations: 127.9 kB / 434.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3015, allocations: 3.938 kB / 434.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3015, allocations: 0 / 434.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.3015, allocations: 0 / 434.2 MB, free: 3.387 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007072/0.3022, allocations: 353.8 kB / 434.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.3023, allocations: 11.98 kB / 434.6 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.23e-05/0.3023, allocations: 42.75 kB / 434.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.39e-05/0.3024, allocations: 20.84 kB / 434.6 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000279/0.3027, allocations: 146.3 kB / 434.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.3027, allocations: 8.375 kB / 434.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.765e-05/0.3027, allocations: 20.31 kB / 434.8 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00056/0.3033, allocations: 247.5 kB / 435 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.3033, allocations: 3.984 kB / 435 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.3033, allocations: 8 kB / 435 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3033, allocations: 0 / 435 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002685/0.3036, allocations: 87.88 kB / 435.1 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007335/0.3043, allocations: 0.5076 MB / 435.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/0.3046, allocations: 147.9 kB / 435.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.3048, allocations: 66.64 kB / 435.8 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.3048, allocations: 4 kB / 435.8 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.3049, allocations: 38.56 kB / 435.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.3049, allocations: 0 / 435.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005524/0.3054, allocations: 177.8 kB / 436.1 MB, free: 1.328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.846e-05/0.3055, allocations: 122.8 kB / 436.2 MB, free: 1.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.3056, allocations: 133.6 kB / 436.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.3057, allocations: 25.7 kB / 436.3 MB, free: 1.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.795e-05/0.3058, allocations: 119.7 kB / 436.5 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.968e-05/0.3058, allocations: 23.84 kB / 436.5 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-05/0.3059, allocations: 33.7 kB / 436.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.306, allocations: 326.8 kB / 436.8 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.3062, allocations: 35.97 kB / 436.9 MB, free: 476 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.3064, allocations: 131.6 kB / 437 MB, free: 300 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.3067, allocations: 180.6 kB / 437.2 MB, free: 72 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3067, allocations: 0 / 437.2 MB, free: 72 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003966/0.3071, allocations: 193.3 kB / 437.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.3071, allocations: 8 kB / 437.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3071, allocations: 3.938 kB / 437.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/0.3071, allocations: 8 kB / 437.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.3073, allocations: 43.91 kB / 437.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.3073, allocations: 4 kB / 437.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.3074, allocations: 20.27 kB / 437.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.3074, allocations: 12 kB / 437.5 MB, free: 15.78 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001415/0.3076, allocations: 137.7 kB / 437.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.3077, allocations: 81.58 kB / 437.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.104e-05/0.3078, allocations: 16.66 kB / 437.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.3078, allocations: 4 kB / 437.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3078, allocations: 0 / 437.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.299e-06/0.3078, allocations: 4 kB / 437.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00027/0.3081, allocations: 168.9 kB / 437.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3081, allocations: 0 / 437.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.3082, allocations: 27.98 kB / 437.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.3082, allocations: 11.98 kB / 437.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.3083, allocations: 15.92 kB / 437.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3083, allocations: 4 kB / 437.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3083, allocations: 0 / 437.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005627/0.3088, allocations: 367.5 kB / 438.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.526e-05/0.3089, allocations: 15.97 kB / 438.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.387e-05/0.3089, allocations: 11.88 kB / 438.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00014/0.309, allocations: 16.05 kB / 438.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.036e-05/0.3091, allocations: 3.984 kB / 438.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-06/0.3091, allocations: 4 kB / 438.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.329e-05/0.3091, allocations: 99.27 kB / 438.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3091, allocations: 0 / 438.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003069/0.3095, allocations: 24 kB / 438.4 MB, free: 14.7 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 (14): * Single equations (assignments): 14 * 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.000892/0.3103, allocations: 0.9149 MB / 439.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003277/0.3107, allocations: 119.7 kB / 439.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3107, allocations: 0 / 439.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.91e-05/0.3108, allocations: 32.78 kB / 439.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004871/0.3113, allocations: 47.05 kB / 439.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.3138, allocations: 2.029 MB / 441.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.314, allocations: 101.5 kB / 441.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.502e-05/0.314, allocations: 20.62 kB / 441.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.445e-05/0.3141, allocations: 31.44 kB / 441.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3141, allocations: 0 / 441.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03218/0.3463, allocations: 3.319 MB / 445.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.31, allocations: 4 kB / 445.1 MB, free: 8.027 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_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.922784899827093]