Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001206/0.001206, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001306/0.001306, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.379/1.379, allocations: 230.2 MB / 254.5 MB, free: 15.24 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 63.89 kB / 373.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1021, allocations: 53.32 MB / 426.6 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003628/0.1057, allocations: 2.078 MB / 428.7 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.1067, allocations: 0.5375 MB / 429.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.1068, allocations: 8 kB / 429.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.107, allocations: 15.8 kB / 429.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.742e-05/0.107, allocations: 31.66 kB / 429.3 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.1073, allocations: 59.88 kB / 429.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.1075, allocations: 127.6 kB / 429.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.1077, allocations: 41.8 kB / 429.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.947e-05/0.1078, allocations: 55.78 kB / 429.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.298e-05/0.1078, allocations: 55.7 kB / 429.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.536e-05/0.1079, allocations: 12 kB / 429.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.342e-05/0.1079, allocations: 16 kB / 429.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.545e-05/0.1079, allocations: 31.84 kB / 429.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.79e-05/0.108, allocations: 55.67 kB / 429.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.1082, allocations: 131.4 kB / 429.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1082, allocations: 0 / 429.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1082, allocations: 0 / 429.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1082, allocations: 0 / 429.9 MB, free: 1.738 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006895/0.1089, allocations: 430.9 kB / 430.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.109, allocations: 11.97 kB / 430.3 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.209e-05/0.109, allocations: 46.75 kB / 430.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.036e-05/0.1091, allocations: 16.84 kB / 430.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003313/0.1094, allocations: 212.1 kB / 430.6 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.1094, allocations: 12.31 kB / 430.6 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.804e-05/0.1095, allocations: 12.38 kB / 430.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004882/0.1099, allocations: 242.7 kB / 430.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.11, allocations: 7.938 kB / 430.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.11, allocations: 4 kB / 430.9 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.11, allocations: 4 kB / 430.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000236/0.1102, allocations: 83.86 kB / 430.9 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007491/0.111, allocations: 0.5922 MB / 431.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.1113, allocations: 139.9 kB / 431.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.1115, allocations: 74.58 kB / 431.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.1115, allocations: 7.984 kB / 431.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.1115, allocations: 38.55 kB / 431.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.1115, allocations: 0 / 431.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005207/0.1121, allocations: 185.3 kB / 432 MB, free: 15.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.838e-05/0.1122, allocations: 114.8 kB / 432.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.1123, allocations: 134.3 kB / 432.2 MB, free: 15.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.1123, allocations: 29.7 kB / 432.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.1124, allocations: 112.1 kB / 432.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.1124, allocations: 31.78 kB / 432.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-05/0.1125, allocations: 37.7 kB / 432.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.1126, allocations: 326.8 kB / 432.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.1128, allocations: 35.97 kB / 432.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.1129, allocations: 136.5 kB / 432.9 MB, free: 14.36 MB / 366.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.0004563/0.1134, allocations: 282.7 kB / 433.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.1134, allocations: 3.938 kB / 433.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003799/0.1138, allocations: 201.5 kB / 433.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.1138, allocations: 8 kB / 433.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.1138, allocations: 4 kB / 433.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.1138, allocations: 4 kB / 433.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.114, allocations: 43.91 kB / 433.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.114, allocations: 8 kB / 433.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.1141, allocations: 23.88 kB / 433.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.1141, allocations: 8 kB / 433.5 MB, free: 13.71 MB / 366.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.0001249/0.1142, allocations: 134.2 kB / 433.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.1144, allocations: 97.52 kB / 433.7 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.947e-05/0.1144, allocations: 20.69 kB / 433.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.1144, allocations: 4 kB / 433.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1144, allocations: 0 / 433.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.1145, allocations: 4 kB / 433.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002927/0.1147, allocations: 209.4 kB / 433.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1147, allocations: 4 kB / 434 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002069/0.115, allocations: 47.91 kB / 434 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.115, allocations: 4.469 kB / 434 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.115, allocations: 7.984 kB / 434 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.115, allocations: 0 / 434 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.115, allocations: 4 kB / 434 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005584/0.1155, allocations: 393.3 kB / 434.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.013e-05/0.1156, allocations: 89.05 kB / 434.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.1156, allocations: 4 kB / 434.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.1157, allocations: 4 kB / 434.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.288e-05/0.1158, allocations: 7.984 kB / 434.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.1158, allocations: 8 kB / 434.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.023e-05/0.1159, allocations: 97.5 kB / 434.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1159, allocations: 4.062 kB / 434.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003276/0.1162, allocations: 39.89 kB / 434.6 MB, free: 12.45 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.0008391/0.1171, allocations: 0.9077 MB / 435.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000329/0.1174, allocations: 123.7 kB / 435.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1174, allocations: 0.9375 kB / 435.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.29e-05/0.1175, allocations: 31.97 kB / 435.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004899/0.118, allocations: 67.27 kB / 435.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.1205, allocations: 2.09 MB / 437.9 MB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.1208, allocations: 0.7201 MB / 438.6 MB, free: 8.281 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.758e-05/0.1209, allocations: 9.078 kB / 438.6 MB, free: 8.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.454e-05/0.121, allocations: 39.42 kB / 438.6 MB, free: 8.234 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.121, allocations: 0 / 438.6 MB, free: 8.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02586/0.1468, allocations: 3.028 MB / 441.7 MB, free: 5.387 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.883/8.03, allocations: 7.922 kB / 441.7 MB, free: 5.379 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 10.51390736689791]