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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001186/0.001186, allocations: 114 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001327, allocations: 205.8 kB / 18.27 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 63.08 kB / 306.5 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1146, allocations: 50.54 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.005107/0.1197, allocations: 2.062 MB / 359.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.1209, allocations: 0.5338 MB / 359.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001748/0.1211, allocations: 4 kB / 359.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.1213, allocations: 11.86 kB / 359.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.1215, allocations: 19.84 kB / 359.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003424/0.1218, allocations: 47.97 kB / 359.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001991/0.122, allocations: 119.6 kB / 359.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.1222, allocations: 59.78 kB / 359.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.331e-05/0.1223, allocations: 51.73 kB / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.47e-05/0.1224, allocations: 51.77 kB / 360 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.684e-05/0.1224, allocations: 16 kB / 360.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.461e-05/0.1224, allocations: 12 kB / 360.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.717e-05/0.1225, allocations: 19.92 kB / 360.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.306e-05/0.1225, allocations: 63.66 kB / 360.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002296/0.1228, allocations: 119.8 kB / 360.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1228, allocations: 0 / 360.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1228, allocations: 0 / 360.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.1228, allocations: 0 / 360.3 MB, free: 11.11 MB / 302.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.0006265/0.1235, allocations: 427 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.878e-05/0.1235, allocations: 12.02 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.152e-05/0.1236, allocations: 46.73 kB / 360.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.358e-05/0.1236, allocations: 12.84 kB / 360.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.1239, allocations: 212 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.1239, allocations: 8.375 kB / 361 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.913e-05/0.1239, allocations: 16.38 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005023/0.1244, allocations: 238.2 kB / 361.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.1245, allocations: 0 / 361.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.1245, allocations: 11.94 kB / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.1245, allocations: 4 kB / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002555/0.1248, allocations: 79.94 kB / 361.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007494/0.1255, allocations: 0.5998 MB / 361.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.1258, allocations: 135.9 kB / 362 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.126, allocations: 86.52 kB / 362.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.126, allocations: 7.984 kB / 362.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.1261, allocations: 30.56 kB / 362.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.1261, allocations: 4 kB / 362.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006106/0.1267, allocations: 181.4 kB / 362.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.037e-05/0.1268, allocations: 106.8 kB / 362.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.1269, allocations: 130.1 kB / 362.6 MB, free: 8.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.127, allocations: 25.7 kB / 362.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.947e-05/0.127, allocations: 108 kB / 362.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.1271, allocations: 35.58 kB / 362.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.904e-05/0.1271, allocations: 29.72 kB / 362.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1273, allocations: 330.9 kB / 363.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.1274, allocations: 31.97 kB / 363.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000255/0.1277, allocations: 136.8 kB / 363.3 MB, free: 7.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003066/0.128, allocations: 184.7 kB / 363.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.128, allocations: 0 / 363.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000354/0.1284, allocations: 189.5 kB / 363.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.1284, allocations: 8 kB / 363.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.1284, allocations: 4.172 kB / 363.6 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.1284, allocations: 8 kB / 363.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.1286, allocations: 43.91 kB / 363.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.1286, allocations: 7.938 kB / 363.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.1287, allocations: 23.83 kB / 363.7 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.1287, allocations: 11.98 kB / 363.7 MB, free: 7.238 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.0001137/0.1289, allocations: 133.8 kB / 363.9 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.129, allocations: 85.91 kB / 363.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.012e-05/0.1291, allocations: 16.66 kB / 364 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1291, allocations: 4 kB / 364 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1291, allocations: 0 / 364 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1291, allocations: 4.078 kB / 364 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002658/0.1294, allocations: 205.5 kB / 364.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1294, allocations: 0 / 364.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.1295, allocations: 35.91 kB / 364.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.1296, allocations: 4 kB / 364.2 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.1296, allocations: 11.94 kB / 364.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1296, allocations: 0 / 364.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1296, allocations: 4 kB / 364.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005177/0.1301, allocations: 375.3 kB / 364.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.835e-05/0.1302, allocations: 88.98 kB / 364.7 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.114e-05/0.1302, allocations: 7.938 kB / 364.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.1304, allocations: 11.98 kB / 364.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.1305, allocations: 4 kB / 364.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.477e-06/0.1305, allocations: 0 / 364.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.718e-05/0.1306, allocations: 105.8 kB / 364.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.094e-06/0.1306, allocations: 0 / 364.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003156/0.1309, allocations: 27.94 kB / 364.8 MB, free: 6.035 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.00083/0.1317, allocations: 0.9076 MB / 365.7 MB, free: 5.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003136/0.1321, allocations: 123.8 kB / 365.9 MB, free: 4.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1321, allocations: 0 / 365.9 MB, free: 4.973 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.29e-05/0.1322, allocations: 32.8 kB / 365.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.1327, allocations: 51.39 kB / 365.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/0.1353, allocations: 2.074 MB / 368 MB, free: 2.645 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.1356, allocations: 0.7123 MB / 368.7 MB, free: 1.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.166e-05/0.1356, allocations: 8.641 kB / 368.7 MB, free: 1.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.439e-05/0.1357, allocations: 43.36 kB / 368.8 MB, free: 1.855 MB / 302.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1357, allocations: 0 / 368.8 MB, free: 1.855 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2018/0.3375, allocations: 2.544 MB / 371.3 MB, free: 20.3 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002343/0.3378, allocations: 247.4 kB / 371.6 MB, free: 20.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.194, allocations: 0 / 371.6 MB, free: 20.05 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches