Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001126/0.001125, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001205/0.001205, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 60.19 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1282, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004823/0.1331, allocations: 2.028 MB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.1345, allocations: 0.6077 MB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001946/0.1348, allocations: 4 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.135, allocations: 15.8 kB / 360.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002374/0.1353, allocations: 35.72 kB / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.1356, allocations: 67.8 kB / 360.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.1359, allocations: 123.6 kB / 360.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.1361, allocations: 65.81 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.1362, allocations: 55.73 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000114/0.1364, allocations: 55.7 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.952e-05/0.1364, allocations: 8 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.669e-05/0.1364, allocations: 12 kB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.814e-05/0.1365, allocations: 39.84 kB / 360.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.457e-05/0.1366, allocations: 67.59 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.1369, allocations: 143.8 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1369, allocations: 0 / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1369, allocations: 0 / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.1369, allocations: 0 / 360.9 MB, free: 10.66 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008057/0.1377, allocations: 454.8 kB / 361.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.1378, allocations: 8.031 kB / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.814e-05/0.1378, allocations: 50.67 kB / 361.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.646e-05/0.1379, allocations: 24.66 kB / 361.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.1381, allocations: 219.2 kB / 361.6 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.1382, allocations: 12.38 kB / 361.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.355e-05/0.1382, allocations: 12.38 kB / 361.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005386/0.1387, allocations: 260.9 kB / 361.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.1388, allocations: 0 / 361.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.1388, allocations: 8 kB / 361.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.1388, allocations: 4 kB / 361.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002621/0.1391, allocations: 87.88 kB / 362 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006793/0.1398, allocations: 0.5998 MB / 362.6 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003562/0.1401, allocations: 151.9 kB / 362.8 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.1403, allocations: 74.64 kB / 362.8 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.1404, allocations: 7.938 kB / 362.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.1404, allocations: 38.55 kB / 362.9 MB, free: 8.441 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.274e-06/0.1404, allocations: 0 / 362.9 MB, free: 8.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000566/0.141, allocations: 189.3 kB / 363.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.068e-05/0.1411, allocations: 106.8 kB / 363.2 MB, free: 8.121 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.1412, allocations: 156.7 kB / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.1413, allocations: 25.7 kB / 363.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.811e-05/0.1413, allocations: 120.4 kB / 363.5 MB, free: 7.809 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.108e-05/0.1414, allocations: 27.64 kB / 363.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.286e-05/0.1415, allocations: 37.7 kB / 363.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1416, allocations: 327 kB / 363.8 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.1417, allocations: 35.97 kB / 363.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001821/0.1419, allocations: 140.6 kB / 364 MB, free: 7.191 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/0.1423, allocations: 189.7 kB / 364.2 MB, free: 6.957 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.269e-06/0.1423, allocations: 7.938 kB / 364.2 MB, free: 6.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004427/0.1428, allocations: 201.5 kB / 364.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.1428, allocations: 4 kB / 364.4 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1428, allocations: 4 kB / 364.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.1428, allocations: 4 kB / 364.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.143, allocations: 51.84 kB / 364.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.143, allocations: 4 kB / 364.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.1431, allocations: 24.23 kB / 364.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.1432, allocations: 16 kB / 364.5 MB, free: 6.641 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001162/0.1433, allocations: 141.6 kB / 364.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.1435, allocations: 89.53 kB / 364.7 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001467/0.1436, allocations: 20.7 kB / 364.8 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1436, allocations: 4 kB / 364.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1436, allocations: 0 / 364.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1436, allocations: 0 / 364.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002914/0.1439, allocations: 221.4 kB / 365 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1439, allocations: 4 kB / 365 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.1441, allocations: 31.98 kB / 365 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.1442, allocations: 4 kB / 365 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.1442, allocations: 4 kB / 365 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.734e-06/0.1442, allocations: 7.984 kB / 365 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.1442, allocations: 7.938 kB / 365 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006074/0.1448, allocations: 379.3 kB / 365.4 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.884e-05/0.1449, allocations: 105 kB / 365.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.1449, allocations: 0 / 365.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.1451, allocations: 8 kB / 365.5 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.524e-05/0.1451, allocations: 7.984 kB / 365.5 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.1452, allocations: 4 kB / 365.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.658e-05/0.1452, allocations: 123.5 kB / 365.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1453, allocations: 4 kB / 365.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003346/0.1456, allocations: 31.84 kB / 365.7 MB, free: 5.363 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 (15): * Single equations (assignments): 15 * 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.0008842/0.1465, allocations: 0.9254 MB / 366.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003789/0.1469, allocations: 128.7 kB / 366.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.1469, allocations: 0 / 366.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.948e-05/0.147, allocations: 32.08 kB / 366.8 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.1475, allocations: 63.88 kB / 366.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.1501, allocations: 2.111 MB / 368.9 MB, free: 1.883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.1505, allocations: 0.7162 MB / 369.7 MB, free: 1.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.41e-05/0.1506, allocations: 17.42 kB / 369.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.463e-05/0.1507, allocations: 39.42 kB / 369.7 MB, free: 1.086 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1507, allocations: 0 / 369.7 MB, free: 1.086 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.208/0.3587, allocations: 2.915 MB / 372.6 MB, free: 20.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.007/8.366, allocations: 7.344 kB / 372.6 MB, free: 20.04 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches