Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001398/0.001398, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001464/0.001464, allocations: 206.6 kB / 20.75 MB, free: 2.312 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.452/1.452, allocations: 230.5 MB / 254 MB, free: 15 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002563/0.002563, allocations: 60.03 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.106, allocations: 53.38 MB / 426.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003472/0.1095, allocations: 2.049 MB / 428.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.1105, allocations: 0.6115 MB / 429 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.1106, allocations: 7.938 kB / 429 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.1107, allocations: 15.8 kB / 429 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001623/0.1109, allocations: 39.7 kB / 429.1 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.1112, allocations: 69.92 kB / 429.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001852/0.1113, allocations: 123.6 kB / 429.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.1115, allocations: 45.86 kB / 429.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.757e-05/0.1116, allocations: 59.72 kB / 429.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.869e-05/0.1117, allocations: 59.7 kB / 429.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.1117, allocations: 12 kB / 429.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.931e-05/0.1117, allocations: 8 kB / 429.4 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.439e-05/0.1118, allocations: 31.91 kB / 429.5 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.13e-05/0.1118, allocations: 67.59 kB / 429.5 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.112, allocations: 151.2 kB / 429.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.112, allocations: 0 / 429.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1121, allocations: 0 / 429.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1121, allocations: 0 / 429.7 MB, free: 1.277 MB / 350.1 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.0006531/0.1127, allocations: 462.6 kB / 430.1 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.1127, allocations: 12.03 kB / 430.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.349e-05/0.1128, allocations: 46.73 kB / 430.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.013e-05/0.1128, allocations: 24.73 kB / 430.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.1131, allocations: 212.1 kB / 430.4 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.1131, allocations: 12.38 kB / 430.4 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.974e-05/0.1131, allocations: 16.38 kB / 430.4 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004963/0.1136, allocations: 256.6 kB / 430.7 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.1136, allocations: 8 kB / 430.7 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.1137, allocations: 0 / 430.7 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.1137, allocations: 4 kB / 430.7 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.1139, allocations: 87.88 kB / 430.8 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006843/0.1146, allocations: 0.6038 MB / 431.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003471/0.115, allocations: 139.9 kB / 431.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.1151, allocations: 78.62 kB / 431.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.1152, allocations: 0 / 431.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.1152, allocations: 38.56 kB / 431.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.072e-06/0.1152, allocations: 0 / 431.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005436/0.1157, allocations: 185.4 kB / 431.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.795e-05/0.1158, allocations: 118.8 kB / 431.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.116, allocations: 162.2 kB / 432.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.116, allocations: 25.7 kB / 432.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.139e-05/0.1161, allocations: 120.5 kB / 432.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.1161, allocations: 27.78 kB / 432.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.423e-05/0.1161, allocations: 33.72 kB / 432.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1163, allocations: 318.8 kB / 432.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.1164, allocations: 43.97 kB / 432.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.1166, allocations: 133.7 kB / 432.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.1169, allocations: 185.5 kB / 433 MB, free: 13.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.1169, allocations: 7.938 kB / 433 MB, free: 13.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00039/0.1173, allocations: 193.4 kB / 433.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.1173, allocations: 12.36 kB / 433.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.1174, allocations: 4 kB / 433.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.1174, allocations: 4 kB / 433.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.1175, allocations: 47.92 kB / 433.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.1175, allocations: 15.91 kB / 433.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.1176, allocations: 19.89 kB / 433.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.1177, allocations: 12.22 kB / 433.3 MB, free: 13.26 MB / 366.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.0001154/0.1178, allocations: 141.8 kB / 433.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.1179, allocations: 93.53 kB / 433.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.698e-05/0.118, allocations: 16.72 kB / 433.5 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.118, allocations: 0 / 433.5 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.118, allocations: 4 kB / 433.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.118, allocations: 3.984 kB / 433.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000287/0.1183, allocations: 217.5 kB / 433.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1183, allocations: 0 / 433.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/0.1185, allocations: 43.91 kB / 433.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1185, allocations: 4 kB / 433.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.1185, allocations: 4 kB / 433.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1185, allocations: 0 / 433.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1185, allocations: 4 kB / 433.8 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005658/0.1191, allocations: 387.3 kB / 434.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.24e-05/0.1192, allocations: 101 kB / 434.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.1192, allocations: 4 kB / 434.3 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.1193, allocations: 11.98 kB / 434.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.817e-05/0.1194, allocations: 4 kB / 434.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.1194, allocations: 7.938 kB / 434.3 MB, free: 12.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.202e-05/0.1195, allocations: 124 kB / 434.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1195, allocations: 4.062 kB / 434.4 MB, free: 12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.1198, allocations: 31.94 kB / 434.5 MB, free: 11.97 MB / 366.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.000878/0.1207, allocations: 0.923 MB / 435.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00033/0.121, allocations: 119.8 kB / 435.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.121, allocations: 0.9375 kB / 435.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.1211, allocations: 36.05 kB / 435.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004881/0.1216, allocations: 55.97 kB / 435.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.1241, allocations: 2.112 MB / 437.7 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.1244, allocations: 0.724 MB / 438.4 MB, free: 7.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.363e-05/0.1245, allocations: 5.438 kB / 438.4 MB, free: 7.766 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.396e-05/0.1245, allocations: 39.42 kB / 438.5 MB, free: 7.727 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1246, allocations: 0 / 438.5 MB, free: 7.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.1505, allocations: 3.006 MB / 441.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.251/8.402, allocations: 4.156 kB / 441.5 MB, free: 4.902 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_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: 11.184097277000546]