Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.0008968/0.0008968, allocations: 79.69 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.0008422/0.0008422, allocations: 170 kB / 23.95 MB, free: 0.6133 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.906/0.906, 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.558e-05/1.734e-05, allocations: 6.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003418/0.003435, allocations: 2.02 MB / 326.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.004589, allocations: 0.5764 MB / 327.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.004718, allocations: 7.938 kB / 327.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001347/0.004853, allocations: 15.8 kB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002048/0.005058, allocations: 35.66 kB / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.005359, allocations: 75.66 kB / 327.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002059/0.005565, allocations: 131.5 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.005718, allocations: 42.69 kB / 327.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.005846, allocations: 79.8 kB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.332e-05/0.005929, allocations: 35.88 kB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.005965, allocations: 15.94 kB / 327.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.316e-05/0.005988, allocations: 12 kB / 327.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.397e-05/0.006052, allocations: 27.91 kB / 327.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.116e-05/0.006113, allocations: 43.86 kB / 327.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.006336, allocations: 147.5 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.006338, allocations: 0 / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.006339, allocations: 0 / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.006345, allocations: 4 kB / 327.8 MB, free: 12.68 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006121/0.006957, allocations: 377.6 kB / 328.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.007001, allocations: 12.02 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.915e-05/0.00705, allocations: 42.75 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.226e-05/0.007092, allocations: 24.8 kB / 328.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002594/0.007351, allocations: 163.8 kB / 328.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.007367, allocations: 8.375 kB / 328.4 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.258e-05/0.007399, allocations: 20.38 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005186/0.007918, allocations: 250 kB / 328.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.007933, allocations: 4.125 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.00795, allocations: 8.125 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.007957, allocations: 4 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002314/0.008189, allocations: 91.88 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008961/0.009085, allocations: 0.5272 MB / 329.3 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003356/0.009421, allocations: 139.9 kB / 329.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/0.00956, allocations: 70.64 kB / 329.5 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.009587, allocations: 4 kB / 329.5 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.009608, allocations: 30.56 kB / 329.5 MB, free: 10.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 4.618e-06/0.009613, allocations: 7.938 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004894/0.0101, allocations: 193.4 kB / 329.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.164e-05/0.01017, allocations: 114.7 kB / 329.9 MB, free: 10.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.01031, allocations: 159 kB / 330 MB, free: 10.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.01033, allocations: 25.7 kB / 330 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.186e-05/0.0104, allocations: 116.6 kB / 330.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.01042, allocations: 23.78 kB / 330.2 MB, free: 10.06 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.083e-05/0.01047, allocations: 25.72 kB / 330.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.01059, allocations: 327 kB / 330.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.809e-05/0.01068, allocations: 31.97 kB / 330.5 MB, free: 9.672 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.01079, allocations: 78.83 kB / 330.6 MB, free: 9.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002019/0.01099, allocations: 118.7 kB / 330.7 MB, free: 9.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.01099, allocations: 0 / 330.7 MB, free: 9.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002606/0.01125, allocations: 133.4 kB / 330.9 MB, free: 9.293 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.01127, allocations: 8 kB / 330.9 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.01128, allocations: 224 / 330.9 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.0113, allocations: 8 kB / 330.9 MB, free: 9.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.0114, allocations: 23.98 kB / 330.9 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.01141, allocations: 11.92 kB / 330.9 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.287e-05/0.01149, allocations: 19.88 kB / 330.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.417e-06/0.0115, allocations: 4 kB / 330.9 MB, free: 9.219 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 8.942e-05/0.01159, allocations: 129.8 kB / 331.1 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.01169, allocations: 97.52 kB / 331.2 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.267e-05/0.01175, allocations: 16.78 kB / 331.2 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.01175, allocations: 8 kB / 331.2 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.01176, allocations: 3.938 kB / 331.2 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.01176, allocations: 4 kB / 331.2 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001765/0.01194, allocations: 176.6 kB / 331.4 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.01194, allocations: 4.469 kB / 331.4 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.792e-05/0.01204, allocations: 27.98 kB / 331.4 MB, free: 8.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.01204, allocations: 4 kB / 331.4 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.01205, allocations: 4 kB / 331.4 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.01206, allocations: 11.92 kB / 331.4 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.01206, allocations: 7.875 kB / 331.4 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.01239, allocations: 379.5 kB / 331.8 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.095e-05/0.01243, allocations: 20.2 kB / 331.8 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.01246, allocations: 11.98 kB / 331.8 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.849e-05/0.01252, allocations: 4 kB / 331.8 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.638e-05/0.01256, allocations: 19.91 kB / 331.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.67e-06/0.01257, allocations: 4 kB / 331.9 MB, free: 8.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.622e-05/0.01262, allocations: 120.1 kB / 332 MB, free: 8.113 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01262, allocations: 3.938 kB / 332 MB, free: 8.109 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001913/0.01281, allocations: 35.95 kB / 332 MB, free: 8.074 MB / 298.7 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.0004614/0.01328, allocations: 0.914 MB / 332.9 MB, free: 7.129 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001755/0.01345, allocations: 92.23 kB / 333 MB, free: 7.039 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.01345, allocations: 4.062 kB / 333 MB, free: 7.035 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.893e-05/0.0135, allocations: 31.91 kB / 333.1 MB, free: 7.004 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003471/0.01385, allocations: 64.09 kB / 333.1 MB, free: 6.941 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.01519, allocations: 1.85 MB / 335 MB, free: 4.957 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.268e-05/0.01528, allocations: 114.6 kB / 335.1 MB, free: 4.824 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.895e-05/0.01531, allocations: 8.594 kB / 335.1 MB, free: 4.816 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.615e-05/0.01536, allocations: 40.48 kB / 335.1 MB, free: 4.777 MB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01536, allocations: 0 / 335.1 MB, free: 4.777 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.03274, allocations: 3.623 MB / 338.8 MB, free: 1.348 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.96/6.992, allocations: 15.73 kB / 338.8 MB, free: 1.332 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_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.841930752620101]