Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001911/0.001911, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.002115/0.002115, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.399/1.399, allocations: 230.2 MB / 254.5 MB, free: 15.27 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 59.89 kB / 373.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1033, allocations: 53.32 MB / 426.6 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003273/0.1065, allocations: 2.025 MB / 428.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000929/0.1075, allocations: 0.5375 MB / 429.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.721e-05/0.1076, allocations: 7.938 kB / 429.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.1077, allocations: 15.86 kB / 429.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.059e-05/0.1078, allocations: 27.72 kB / 429.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.1081, allocations: 55.88 kB / 429.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001819/0.1082, allocations: 119.6 kB / 429.4 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.1084, allocations: 41.42 kB / 429.5 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.503e-05/0.1085, allocations: 51.84 kB / 429.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.653e-05/0.1086, allocations: 51.66 kB / 429.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.1086, allocations: 16 kB / 429.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.858e-05/0.1086, allocations: 11.94 kB / 429.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.134e-05/0.1086, allocations: 23.92 kB / 429.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.539e-05/0.1087, allocations: 67.64 kB / 429.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002051/0.1089, allocations: 119.5 kB / 429.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1089, allocations: 0 / 429.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1089, allocations: 0 / 429.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1089, allocations: 0 / 429.8 MB, free: 1.871 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.0006391/0.1096, allocations: 430.9 kB / 430.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1096, allocations: 8.031 kB / 430.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.717e-05/0.1097, allocations: 46.73 kB / 430.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.718e-05/0.1097, allocations: 16.84 kB / 430.3 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.11, allocations: 212.1 kB / 430.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.11, allocations: 8.375 kB / 430.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.11, allocations: 20.31 kB / 430.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004961/0.1105, allocations: 244.9 kB / 430.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.1105, allocations: 0 / 430.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.1106, allocations: 0 / 430.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.1106, allocations: 7.938 kB / 430.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002374/0.1108, allocations: 83.94 kB / 430.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000696/0.1115, allocations: 0.596 MB / 431.5 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000291/0.1118, allocations: 135.9 kB / 431.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.1119, allocations: 78.58 kB / 431.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.112, allocations: 8 kB / 431.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.112, allocations: 42.48 kB / 431.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.112, allocations: 0 / 431.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005097/0.1125, allocations: 181.4 kB / 431.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.133e-05/0.1126, allocations: 111.3 kB / 432 MB, free: 15.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.1127, allocations: 132.1 kB / 432.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.1127, allocations: 25.7 kB / 432.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.564e-05/0.1128, allocations: 115.8 kB / 432.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.153e-05/0.1128, allocations: 39.7 kB / 432.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.1129, allocations: 29.72 kB / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.113, allocations: 322.8 kB / 432.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.1131, allocations: 39.97 kB / 432.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.1133, allocations: 128.8 kB / 432.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.1136, allocations: 176.7 kB / 433 MB, free: 14.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.1136, allocations: 4 kB / 433 MB, free: 14.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000352/0.1139, allocations: 189.2 kB / 433.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.114, allocations: 8.438 kB / 433.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.114, allocations: 11.94 kB / 433.2 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.114, allocations: 4 kB / 433.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.1142, allocations: 43.91 kB / 433.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.1142, allocations: 4 kB / 433.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.915e-05/0.1143, allocations: 27.81 kB / 433.3 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.1143, allocations: 8 kB / 433.3 MB, free: 13.99 MB / 366.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.0001071/0.1144, allocations: 125.8 kB / 433.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.1145, allocations: 89.58 kB / 433.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.611e-05/0.1146, allocations: 20.66 kB / 433.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1146, allocations: 0 / 433.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1146, allocations: 0 / 433.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.1146, allocations: 7.984 kB / 433.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002708/0.1149, allocations: 197.6 kB / 433.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1149, allocations: 0 / 433.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.115, allocations: 35.91 kB / 433.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.115, allocations: 4 kB / 433.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.115, allocations: 7.938 kB / 433.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.115, allocations: 4 kB / 433.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.115, allocations: 4 kB / 433.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00053/0.1156, allocations: 363.5 kB / 434.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.974e-05/0.1156, allocations: 100.9 kB / 434.2 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.1157, allocations: 12 kB / 434.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.1158, allocations: 8 kB / 434.2 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.558e-05/0.1158, allocations: 7.984 kB / 434.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.1158, allocations: 4 kB / 434.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.119e-05/0.1159, allocations: 101 kB / 434.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1159, allocations: 3.938 kB / 434.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.1162, allocations: 24 kB / 434.4 MB, free: 12.79 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 (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.0008037/0.117, allocations: 0.9149 MB / 435.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003054/0.1173, allocations: 115.8 kB / 435.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.1173, allocations: 0 / 435.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.952e-05/0.1174, allocations: 27.97 kB / 435.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000464/0.1179, allocations: 49.41 kB / 435.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.1202, allocations: 2.029 MB / 437.5 MB, free: 9.457 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.1205, allocations: 0.7123 MB / 438.2 MB, free: 8.719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.912e-05/0.1206, allocations: 12.64 kB / 438.2 MB, free: 8.707 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.402e-05/0.1206, allocations: 35.42 kB / 438.3 MB, free: 8.672 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1206, allocations: 4 kB / 438.3 MB, free: 8.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02532/0.146, allocations: 2.772 MB / 441 MB, free: 6.078 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.874/8.02, allocations: 4.609 kB / 441 MB, free: 6.074 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 10.585368705913424]