Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001443/0.001443, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 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.00239/0.00239, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.522/1.522, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 47.92 kB / 370.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2964, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003632/0.3001, allocations: 2.092 MB / 424.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009358/0.301, allocations: 0.5104 MB / 425.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.3011, allocations: 7.938 kB / 425.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.3012, allocations: 15.8 kB / 425.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.698e-05/0.3013, allocations: 31.67 kB / 425.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002792/0.3016, allocations: 51.88 kB / 425.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002198/0.3018, allocations: 127.6 kB / 425.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.3019, allocations: 41.98 kB / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.791e-05/0.302, allocations: 59.72 kB / 425.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.79e-05/0.3021, allocations: 55.77 kB / 425.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.3022, allocations: 8 kB / 425.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.565e-05/0.3022, allocations: 15.94 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.002e-05/0.3022, allocations: 23.92 kB / 425.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.907e-05/0.3023, allocations: 63.66 kB / 425.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002188/0.3025, allocations: 127.8 kB / 425.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.206e-06/0.3025, allocations: 4 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3025, allocations: 0 / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.3025, allocations: 0 / 425.8 MB, free: 11.36 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006324/0.3031, allocations: 365.7 kB / 426.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.3032, allocations: 12.03 kB / 426.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.927e-05/0.3032, allocations: 42.73 kB / 426.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.269e-05/0.3033, allocations: 16.84 kB / 426.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002818/0.3036, allocations: 158.2 kB / 426.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.3036, allocations: 8.375 kB / 426.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.019e-05/0.3036, allocations: 12.38 kB / 426.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000509/0.3041, allocations: 242.6 kB / 426.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.3041, allocations: 0 / 426.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.3041, allocations: 0 / 426.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.3042, allocations: 8 kB / 426.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002497/0.3044, allocations: 83.88 kB / 426.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007366/0.3051, allocations: 0.5349 MB / 427.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003773/0.3055, allocations: 147.9 kB / 427.4 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.3057, allocations: 70.64 kB / 427.5 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.891e-05/0.3057, allocations: 4 kB / 427.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.3057, allocations: 34.56 kB / 427.5 MB, free: 9.457 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.3057, allocations: 0 / 427.5 MB, free: 9.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005142/0.3063, allocations: 189.6 kB / 427.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.3064, allocations: 122.7 kB / 427.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.3065, allocations: 136.7 kB / 428 MB, free: 8.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.3065, allocations: 25.7 kB / 428 MB, free: 8.949 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.497e-05/0.3066, allocations: 120 kB / 428.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.919e-05/0.3067, allocations: 27.78 kB / 428.2 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.733e-05/0.3067, allocations: 37.7 kB / 428.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.3069, allocations: 322.8 kB / 428.5 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.307, allocations: 40 kB / 428.5 MB, free: 8.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.3072, allocations: 136.9 kB / 428.7 MB, free: 8.215 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.3076, allocations: 205.5 kB / 428.9 MB, free: 7.965 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3076, allocations: 3.938 kB / 428.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003789/0.308, allocations: 197.2 kB / 429.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.308, allocations: 8 kB / 429.1 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.308, allocations: 4 kB / 429.1 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.308, allocations: 4 kB / 429.1 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.3082, allocations: 43.92 kB / 429.1 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.3082, allocations: 12.39 kB / 429.1 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.3083, allocations: 27.83 kB / 429.2 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.3083, allocations: 8 kB / 429.2 MB, free: 7.656 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001263/0.3085, allocations: 137.7 kB / 429.3 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.3086, allocations: 89.59 kB / 429.4 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.607e-05/0.3087, allocations: 16.72 kB / 429.4 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3087, allocations: 0 / 429.4 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3087, allocations: 4 kB / 429.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3087, allocations: 7.984 kB / 429.4 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002713/0.309, allocations: 180.5 kB / 429.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.309, allocations: 4 kB / 429.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002085/0.3092, allocations: 47.91 kB / 429.7 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3092, allocations: 480 / 429.7 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.3092, allocations: 4 kB / 429.7 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3092, allocations: 0 / 429.7 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3092, allocations: 0 / 429.7 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005511/0.3097, allocations: 394.6 kB / 430 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.213e-05/0.3098, allocations: 11.94 kB / 430.1 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.3098, allocations: 8 kB / 430.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.3099, allocations: 7.984 kB / 430.1 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.948e-05/0.31, allocations: 3.984 kB / 430.1 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.31, allocations: 12.06 kB / 430.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.568e-05/0.31, allocations: 103.3 kB / 430.2 MB, free: 6.566 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.31, allocations: 0 / 430.2 MB, free: 6.566 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003177/0.3104, allocations: 27.94 kB / 430.2 MB, free: 6.539 MB / 334.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.0009142/0.3113, allocations: 0.9116 MB / 431.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003531/0.3116, allocations: 132.3 kB / 431.3 MB, free: 5.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3116, allocations: 4.188 kB / 431.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.711e-05/0.3117, allocations: 27.92 kB / 431.3 MB, free: 5.441 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004977/0.3122, allocations: 62.98 kB / 431.4 MB, free: 5.383 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/0.3149, allocations: 2.106 MB / 433.5 MB, free: 3.102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.3153, allocations: 0.7201 MB / 434.2 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.575e-05/0.3154, allocations: 5.094 kB / 434.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.631e-05/0.3154, allocations: 39.42 kB / 434.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3154, allocations: 4 kB / 434.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03457/0.35, allocations: 3.204 MB / 437.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.56, allocations: 23.75 kB / 437.5 MB, free: 15.25 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.212397238006815]