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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 112.2 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001692/0.001692, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 38.97 kB / 300 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1069, allocations: 49.46 MB / 349.5 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003931/0.1108, allocations: 2.042 MB / 351.5 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.1122, allocations: 0.4987 MB / 352 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000264/0.1125, allocations: 4 kB / 352 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001844/0.1127, allocations: 11.86 kB / 352.1 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.1129, allocations: 19.84 kB / 352.1 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004149/0.1133, allocations: 42.47 kB / 352.1 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.1136, allocations: 115.6 kB / 352.2 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.1137, allocations: 52.95 kB / 352.3 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.1139, allocations: 47.73 kB / 352.3 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.114, allocations: 55.75 kB / 352.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.044e-05/0.114, allocations: 8 kB / 352.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.489e-05/0.1141, allocations: 4 kB / 352.4 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.393e-05/0.1141, allocations: 19.92 kB / 352.4 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.941e-05/0.1142, allocations: 63.67 kB / 352.5 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.1145, allocations: 119.8 kB / 352.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.1145, allocations: 0 / 352.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1145, allocations: 0 / 352.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.1145, allocations: 0 / 352.6 MB, free: 1.641 MB / 286.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.0009317/0.1155, allocations: 427 kB / 353 MB, free: 1.176 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.987e-05/0.1156, allocations: 12.03 kB / 353 MB, free: 1.164 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.203e-05/0.1156, allocations: 46.73 kB / 353.1 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.098e-05/0.1157, allocations: 16.84 kB / 353.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.116, allocations: 212 kB / 353.3 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.116, allocations: 8.375 kB / 353.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.1161, allocations: 12.38 kB / 353.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005576/0.1166, allocations: 234.7 kB / 353.5 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.1167, allocations: 3.984 kB / 353.5 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.1167, allocations: 8 kB / 353.6 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.1167, allocations: 4 kB / 353.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002767/0.117, allocations: 79.88 kB / 353.6 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008857/0.1179, allocations: 0.5998 MB / 354.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.1183, allocations: 151.9 kB / 354.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.1185, allocations: 70.64 kB / 354.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.949e-05/0.1185, allocations: 7.938 kB / 354.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.1185, allocations: 38.55 kB / 354.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.064e-06/0.1186, allocations: 0 / 354.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006152/0.1192, allocations: 181.2 kB / 354.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.813e-05/0.1193, allocations: 110.9 kB / 354.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.1194, allocations: 134.1 kB / 354.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.101e-05/0.1195, allocations: 29.7 kB / 354.9 MB, free: 15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.1196, allocations: 112 kB / 355.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/0.1197, allocations: 27.64 kB / 355.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.422e-05/0.1197, allocations: 33.66 kB / 355.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1199, allocations: 322.8 kB / 355.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.1201, allocations: 35.97 kB / 355.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.1203, allocations: 132.8 kB / 355.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003257/0.1206, allocations: 180.7 kB / 355.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.1206, allocations: 0 / 355.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000403/0.121, allocations: 189.1 kB / 356 MB, free: 13.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.1211, allocations: 8 kB / 356 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.1211, allocations: 8.375 kB / 356 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.1211, allocations: 8 kB / 356 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.1213, allocations: 43.91 kB / 356 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.1213, allocations: 4 kB / 356 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.1215, allocations: 27.83 kB / 356.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.1215, allocations: 8 kB / 356.1 MB, free: 13.77 MB / 302.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.0001477/0.1216, allocations: 125.7 kB / 356.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001745/0.1218, allocations: 89.84 kB / 356.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.871e-05/0.1219, allocations: 24.66 kB / 356.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1219, allocations: 0 / 356.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/0.1219, allocations: 4.234 kB / 356.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.1219, allocations: 3.984 kB / 356.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003669/0.1223, allocations: 193.6 kB / 356.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.1223, allocations: 3.984 kB / 356.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002002/0.1225, allocations: 39.91 kB / 356.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.1226, allocations: 0 / 356.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.761e-05/0.1226, allocations: 11.94 kB / 356.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.1226, allocations: 3.984 kB / 356.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1226, allocations: 0 / 356.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00065/0.1233, allocations: 378.4 kB / 356.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.078e-05/0.1234, allocations: 96.92 kB / 357 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.1234, allocations: 7.938 kB / 357 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.1236, allocations: 12.05 kB / 357 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.732e-05/0.1236, allocations: 4 kB / 357 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.1237, allocations: 8 kB / 357 MB, free: 12.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.888e-05/0.1237, allocations: 98.78 kB / 357.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1237, allocations: 0 / 357.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003676/0.1241, allocations: 24 kB / 357.2 MB, free: 12.56 MB / 302.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.0008534/0.125, allocations: 0.9153 MB / 358.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000358/0.1253, allocations: 124.1 kB / 358.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.1254, allocations: 0 / 358.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.559e-05/0.1255, allocations: 27.97 kB / 358.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005354/0.126, allocations: 51.95 kB / 358.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.1286, allocations: 2.053 MB / 360.3 MB, free: 9.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.1289, allocations: 0.7161 MB / 361.1 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.53e-05/0.1289, allocations: 12.64 kB / 361.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.751e-05/0.129, allocations: 35.42 kB / 361.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.129, allocations: 0 / 361.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01414/0.1432, allocations: 2.472 MB / 363.6 MB, free: 6.109 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002136/0.1434, allocations: 247.7 kB / 363.8 MB, free: 5.852 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.054, allocations: 3.094 kB / 363.8 MB, free: 5.852 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches