Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001592/0.001592, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.00173/0.00173, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.534/1.534, allocations: 225.6 MB / 249.1 MB, free: 3.629 MB / 190.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 51.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1137, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003726/0.1175, allocations: 2.001 MB / 419.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009718/0.1184, allocations: 0.5103 MB / 420.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.1186, allocations: 7.938 kB / 420.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.1187, allocations: 15.8 kB / 420.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.133e-05/0.1188, allocations: 23.78 kB / 420.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000298/0.1191, allocations: 55.88 kB / 420.4 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002007/0.1193, allocations: 123.5 kB / 420.5 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.1195, allocations: 51.66 kB / 420.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.043e-05/0.1195, allocations: 43.8 kB / 420.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.498e-05/0.1196, allocations: 59.7 kB / 420.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.815e-05/0.1197, allocations: 12 kB / 420.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.187e-05/0.1197, allocations: 8 kB / 420.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.275e-05/0.1197, allocations: 23.92 kB / 420.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.718e-05/0.1198, allocations: 55.72 kB / 420.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.12, allocations: 127.4 kB / 420.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.12, allocations: 0 / 420.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.12, allocations: 0 / 420.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.12, allocations: 4 kB / 420.9 MB, free: 9.5 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006861/0.1207, allocations: 430.9 kB / 421.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1208, allocations: 11.89 kB / 421.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.264e-05/0.1208, allocations: 50.67 kB / 421.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.325e-05/0.1209, allocations: 16.84 kB / 421.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.1212, allocations: 208.2 kB / 421.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.1212, allocations: 20.31 kB / 421.6 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.423e-05/0.1212, allocations: 12.38 kB / 421.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000502/0.1217, allocations: 245.2 kB / 421.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.1217, allocations: 7.953 kB / 421.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.1218, allocations: 7.984 kB / 421.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.1218, allocations: 4 kB / 421.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002484/0.122, allocations: 83.81 kB / 421.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006821/0.1227, allocations: 0.5805 MB / 422.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002937/0.123, allocations: 143.9 kB / 422.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.1231, allocations: 70.58 kB / 422.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.1232, allocations: 4 kB / 422.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.1232, allocations: 30.56 kB / 422.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.1232, allocations: 0 / 422.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005226/0.1237, allocations: 189.3 kB / 423 MB, free: 7.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.267e-05/0.1238, allocations: 110.8 kB / 423.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.1239, allocations: 126.1 kB / 423.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.124, allocations: 29.7 kB / 423.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.57e-05/0.124, allocations: 112.1 kB / 423.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.979e-05/0.1241, allocations: 31.77 kB / 423.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-05/0.1241, allocations: 45.77 kB / 423.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1243, allocations: 318.8 kB / 423.7 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.1244, allocations: 39.97 kB / 423.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.1246, allocations: 126.9 kB / 423.9 MB, free: 6.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002914/0.1249, allocations: 184.6 kB / 424.1 MB, free: 5.922 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1249, allocations: 0 / 424.1 MB, free: 5.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000353/0.1252, allocations: 189.3 kB / 424.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1252, allocations: 8 kB / 424.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.1252, allocations: 3.938 kB / 424.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.1253, allocations: 8 kB / 424.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002286/0.1255, allocations: 39.92 kB / 424.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.1255, allocations: 11.92 kB / 424.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.1256, allocations: 20.23 kB / 424.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.1256, allocations: 12.38 kB / 424.3 MB, free: 5.629 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.0001176/0.1257, allocations: 133.7 kB / 424.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001588/0.1259, allocations: 89.53 kB / 424.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.908e-05/0.1259, allocations: 16.66 kB / 424.6 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1259, allocations: 4 kB / 424.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.126, allocations: 0 / 424.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.126, allocations: 240 / 424.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.1263, allocations: 197.6 kB / 424.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1263, allocations: 4 kB / 424.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.1264, allocations: 39.91 kB / 424.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.1264, allocations: 7.984 kB / 424.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.1264, allocations: 7.938 kB / 424.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.1265, allocations: 4 kB / 424.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1265, allocations: 4 kB / 424.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005438/0.127, allocations: 371.5 kB / 425.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.264e-05/0.1271, allocations: 89.03 kB / 425.3 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.947e-05/0.1271, allocations: 15.92 kB / 425.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.1272, allocations: 4 kB / 425.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.913e-05/0.1273, allocations: 7.984 kB / 425.3 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.1273, allocations: 4 kB / 425.3 MB, free: 4.539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.825e-05/0.1273, allocations: 98.36 kB / 425.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1273, allocations: 8.062 kB / 425.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003207/0.1277, allocations: 27.95 kB / 425.5 MB, free: 4.41 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.0008517/0.1285, allocations: 0.9077 MB / 426.4 MB, free: 3.473 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003282/0.1288, allocations: 118.8 kB / 426.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1288, allocations: 0.875 kB / 426.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.82e-05/0.1289, allocations: 31.97 kB / 426.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000497/0.1294, allocations: 52.25 kB / 426.6 MB, free: 3.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002513/0.132, allocations: 2.031 MB / 428.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.1323, allocations: 0.7122 MB / 429.3 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.605e-05/0.1324, allocations: 20.62 kB / 429.3 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.621e-05/0.1325, allocations: 31.44 kB / 429.4 MB, free: 292 kB / 350.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1325, allocations: 0 / 429.4 MB, free: 292 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.029/0.1615, allocations: 2.759 MB / 432.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.603/8.764, allocations: 15.56 kB / 432.1 MB, free: 13.7 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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: 11.338890078943223]