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.001512/0.001512, allocations: 114.5 kB / 16.63 MB, free: 6.812 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.001406/0.001406, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.447/1.447, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 46.02 kB / 300.2 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1064, allocations: 49.44 MB / 349.7 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003953/0.1104, allocations: 2.051 MB / 351.7 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.1116, allocations: 0.4948 MB / 352.2 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.1117, allocations: 3.938 kB / 352.2 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.1119, allocations: 15.92 kB / 352.2 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.112, allocations: 15.84 kB / 352.3 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003346/0.1124, allocations: 59.81 kB / 352.3 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002125/0.1126, allocations: 119.6 kB / 352.4 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.1128, allocations: 53.3 kB / 352.5 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.1129, allocations: 39.86 kB / 352.5 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.113, allocations: 63.69 kB / 352.6 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.113, allocations: 8 kB / 352.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.37e-05/0.113, allocations: 12 kB / 352.6 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.508e-05/0.1131, allocations: 27.92 kB / 352.6 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.976e-05/0.1132, allocations: 55.67 kB / 352.7 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001976/0.1134, allocations: 131.8 kB / 352.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1134, allocations: 0 / 352.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.1134, allocations: 0 / 352.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1134, allocations: 3.938 kB / 352.8 MB, free: 1.508 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.0007605/0.1142, allocations: 433.4 kB / 353.2 MB, free: 1.039 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.1142, allocations: 15.89 kB / 353.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.049e-05/0.1143, allocations: 50.73 kB / 353.3 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.858e-05/0.1144, allocations: 12.84 kB / 353.3 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.1147, allocations: 207.2 kB / 353.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.1147, allocations: 8.375 kB / 353.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.28e-05/0.1147, allocations: 12.38 kB / 353.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005101/0.1152, allocations: 234.7 kB / 353.8 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.1153, allocations: 0 / 353.8 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.1153, allocations: 4 kB / 353.8 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/0.1153, allocations: 4 kB / 353.8 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002546/0.1156, allocations: 91.86 kB / 353.9 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007444/0.1163, allocations: 0.592 MB / 354.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/0.1166, allocations: 151.9 kB / 354.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.1168, allocations: 74.62 kB / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.145e-05/0.1168, allocations: 4 kB / 354.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.1169, allocations: 34.56 kB / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.1169, allocations: 0 / 354.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005352/0.1174, allocations: 181.2 kB / 354.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.1175, allocations: 118.9 kB / 355 MB, free: 15.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.1176, allocations: 133.4 kB / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.1177, allocations: 29.7 kB / 355.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.228e-05/0.1178, allocations: 112 kB / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.983e-05/0.1178, allocations: 27.64 kB / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.509e-05/0.1178, allocations: 33.7 kB / 355.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002219/0.1181, allocations: 322.8 kB / 355.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.1182, allocations: 39.97 kB / 355.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.1184, allocations: 120.9 kB / 355.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.1187, allocations: 184.6 kB / 356 MB, free: 13.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1187, allocations: 4 kB / 356 MB, free: 13.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003601/0.1191, allocations: 189.1 kB / 356.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.1191, allocations: 15.5 kB / 356.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/0.1192, allocations: 11.94 kB / 356.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.1192, allocations: 4 kB / 356.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.1194, allocations: 39.92 kB / 356.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.1194, allocations: 7.984 kB / 356.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.1195, allocations: 23.84 kB / 356.3 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.1195, allocations: 8 kB / 356.3 MB, free: 13.64 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.0001066/0.1196, allocations: 129.7 kB / 356.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.1198, allocations: 85.84 kB / 356.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.73e-05/0.1198, allocations: 28.64 kB / 356.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1198, allocations: 0 / 356.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.1199, allocations: 4 kB / 356.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.1199, allocations: 0 / 356.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.1201, allocations: 197.6 kB / 356.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1202, allocations: 4 kB / 356.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.1203, allocations: 35.98 kB / 356.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.1203, allocations: 0 / 356.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.1204, allocations: 11.92 kB / 356.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.1204, allocations: 0 / 356.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1204, allocations: 4 kB / 356.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006259/0.121, allocations: 371.4 kB / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.623e-05/0.1211, allocations: 88.98 kB / 357.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.1211, allocations: 12 kB / 357.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.1213, allocations: 7.984 kB / 357.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.874e-05/0.1213, allocations: 8.234 kB / 357.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.1214, allocations: 7.984 kB / 357.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.514e-05/0.1214, allocations: 95.27 kB / 357.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1214, allocations: 0 / 357.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003365/0.1218, allocations: 24 kB / 357.4 MB, free: 12.44 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.0009901/0.1228, allocations: 0.9154 MB / 358.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003483/0.1231, allocations: 127.8 kB / 358.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1232, allocations: 0 / 358.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.1233, allocations: 31.91 kB / 358.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005704/0.1238, allocations: 56.08 kB / 358.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002688/0.1265, allocations: 2.053 MB / 360.6 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.1269, allocations: 0.7123 MB / 361.3 MB, free: 8.324 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.14e-05/0.127, allocations: 12.59 kB / 361.3 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.433e-05/0.1271, allocations: 39.42 kB / 361.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1271, allocations: 0 / 361.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01542/0.1425, allocations: 2.566 MB / 363.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/0.1427, allocations: 240 kB / 364.1 MB, free: 5.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.973/2.116, allocations: 3.234 kB / 364.1 MB, free: 5.66 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