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.002035/0.002035, allocations: 116.5 kB / 20.44 MB, free: 1.469 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.002185/0.002185, allocations: 214.2 kB / 23.74 MB, free: 4.695 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.578/1.578, allocations: 230.5 MB / 257.4 MB, free: 8.035 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.89 kB / 377.8 MB, free: 3.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3006, allocations: 53.4 MB / 431.2 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004034/0.3047, allocations: 2.043 MB / 433.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.3058, allocations: 0.5453 MB / 433.8 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.3059, allocations: 8 kB / 433.8 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001289/0.3061, allocations: 15.8 kB / 433.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.176e-05/0.3061, allocations: 27.72 kB / 433.8 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003881/0.3065, allocations: 55.88 kB / 433.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000206/0.3067, allocations: 119.6 kB / 434 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001588/0.3069, allocations: 41.61 kB / 434 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.674e-05/0.307, allocations: 51.8 kB / 434.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.3071, allocations: 55.75 kB / 434.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.3071, allocations: 12 kB / 434.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.1e-05/0.3071, allocations: 12 kB / 434.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.768e-05/0.3072, allocations: 27.86 kB / 434.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.699e-05/0.3073, allocations: 51.73 kB / 434.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002363/0.3075, allocations: 135.8 kB / 434.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3075, allocations: 0 / 434.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3075, allocations: 0 / 434.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.3075, allocations: 0 / 434.4 MB, free: 3.52 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.0006617/0.3082, allocations: 349.8 kB / 434.7 MB, free: 3.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.3082, allocations: 16.03 kB / 434.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.361e-05/0.3083, allocations: 38.75 kB / 434.8 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.911e-05/0.3083, allocations: 16.78 kB / 434.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.3085, allocations: 157.9 kB / 434.9 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.3086, allocations: 8.375 kB / 434.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.3086, allocations: 16.33 kB / 434.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005179/0.3091, allocations: 243.5 kB / 435.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.3091, allocations: 0 / 435.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.3091, allocations: 4 kB / 435.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.3092, allocations: 4 kB / 435.2 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/0.3094, allocations: 91.88 kB / 435.3 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006742/0.3101, allocations: 0.5349 MB / 435.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.3104, allocations: 139.9 kB / 436 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.3106, allocations: 70.64 kB / 436 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.3106, allocations: 7.984 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.3106, allocations: 46.44 kB / 436.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.273e-06/0.3106, allocations: 0 / 436.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005413/0.3112, allocations: 173.4 kB / 436.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.68e-05/0.3113, allocations: 110.9 kB / 436.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.3114, allocations: 136.8 kB / 436.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.3114, allocations: 25.7 kB / 436.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.819e-05/0.3115, allocations: 115.8 kB / 436.6 MB, free: 1.012 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.865e-05/0.3115, allocations: 27.78 kB / 436.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-05/0.3116, allocations: 33.72 kB / 436.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3117, allocations: 322.8 kB / 437 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.3118, allocations: 35.97 kB / 437 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.312, allocations: 135.5 kB / 437.2 MB, free: 420 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/0.3123, allocations: 176.8 kB / 437.3 MB, free: 196 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3123, allocations: 0 / 437.3 MB, free: 196 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000386/0.3127, allocations: 193.2 kB / 437.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.3127, allocations: 8 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.3127, allocations: 8.375 kB / 437.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.3128, allocations: 8 kB / 437.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.313, allocations: 47.86 kB / 437.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.313, allocations: 7.938 kB / 437.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.3131, allocations: 19.88 kB / 437.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.3131, allocations: 8 kB / 437.6 MB, free: 15.89 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.0001283/0.3132, allocations: 133.7 kB / 437.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.3134, allocations: 81.58 kB / 437.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.405e-05/0.3134, allocations: 24.66 kB / 437.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.3134, allocations: 480 / 437.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.3134, allocations: 3.984 kB / 437.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.3134, allocations: 4 kB / 437.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002736/0.3137, allocations: 168.7 kB / 438 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.3137, allocations: 3.984 kB / 438 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.3139, allocations: 39.86 kB / 438.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3139, allocations: 4 kB / 438.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.3139, allocations: 3.938 kB / 438.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.3139, allocations: 4 kB / 438.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3139, allocations: 4 kB / 438.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005825/0.3145, allocations: 367.6 kB / 438.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.932e-05/0.3146, allocations: 15.89 kB / 438.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.32e-05/0.3146, allocations: 3.938 kB / 438.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.3147, allocations: 16.05 kB / 438.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.64e-05/0.3148, allocations: 7.938 kB / 438.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.3148, allocations: 8 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.113e-05/0.3148, allocations: 103.2 kB / 438.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3148, allocations: 0 / 438.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000329/0.3152, allocations: 27.95 kB / 438.6 MB, free: 14.8 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.0008579/0.316, allocations: 0.9038 MB / 439.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003369/0.3164, allocations: 112 kB / 439.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3164, allocations: 7.938 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.603e-05/0.3165, allocations: 23.98 kB / 439.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005313/0.317, allocations: 62.53 kB / 439.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.3196, allocations: 2.03 MB / 441.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003655/0.3199, allocations: 0.7162 MB / 442.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.896e-05/0.32, allocations: 12.58 kB / 442.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.438e-05/0.3201, allocations: 39.7 kB / 442.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3201, allocations: 0 / 442.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.355, allocations: 2.945 MB / 445.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.04, allocations: 15 kB / 445.5 MB, free: 7.863 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.892662199999904]