Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",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.001478/0.001478, allocations: 108.7 kB / 16.92 MB, free: 6.145 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.001773/0.001773, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.658/1.658, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 47.95 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1635, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.005328/0.1689, allocations: 2.043 MB / 352.2 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.1705, allocations: 0.5103 MB / 352.7 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002975/0.1708, allocations: 3.938 kB / 352.7 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001986/0.171, allocations: 19.8 kB / 352.7 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.1712, allocations: 27.72 kB / 352.8 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.1717, allocations: 51.94 kB / 352.8 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.1721, allocations: 131.5 kB / 352.9 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002491/0.1723, allocations: 53.66 kB / 353 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.1725, allocations: 47.78 kB / 353 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.1726, allocations: 51.78 kB / 353.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.332e-05/0.1726, allocations: 16 kB / 353.1 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.105e-05/0.1727, allocations: 11.94 kB / 353.1 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.79e-05/0.1727, allocations: 27.86 kB / 353.1 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.1728, allocations: 67.66 kB / 353.2 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002674/0.1731, allocations: 119.8 kB / 353.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.1731, allocations: 0 / 353.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1731, allocations: 0 / 353.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1732, allocations: 0 / 353.3 MB, free: 1.129 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0009638/0.1741, allocations: 439 kB / 353.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.515e-05/0.1742, allocations: 15.89 kB / 353.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.891e-05/0.1743, allocations: 46.73 kB / 353.8 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.708e-05/0.1744, allocations: 16.75 kB / 353.8 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.1747, allocations: 204.1 kB / 354 MB, free: 336 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.1747, allocations: 12.38 kB / 354 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.202e-05/0.1748, allocations: 12.38 kB / 354.1 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006313/0.1754, allocations: 235.1 kB / 354.3 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.1755, allocations: 7.984 kB / 354.3 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.1755, allocations: 4 kB / 354.3 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.1755, allocations: 4 kB / 354.3 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/0.1758, allocations: 87.89 kB / 354.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009938/0.1768, allocations: 0.5959 MB / 355 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004123/0.1773, allocations: 147.9 kB / 355.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.1775, allocations: 74.62 kB / 355.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.1775, allocations: 8 kB / 355.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.1775, allocations: 38.5 kB / 355.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 3.196e-06/0.1775, allocations: 0 / 355.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005473/0.1781, allocations: 181.2 kB / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.1782, allocations: 118.9 kB / 355.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002675/0.1785, allocations: 142.1 kB / 355.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.1785, allocations: 29.7 kB / 355.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.1786, allocations: 108 kB / 355.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.701e-05/0.1787, allocations: 31.55 kB / 355.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.942e-05/0.1788, allocations: 33.72 kB / 355.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.1789, allocations: 322.8 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.1791, allocations: 39.97 kB / 356.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/0.1793, allocations: 149.6 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0007721/0.1801, allocations: 278.7 kB / 356.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.898e-06/0.1801, allocations: 3.938 kB / 356.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005121/0.1806, allocations: 197.1 kB / 356.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.1807, allocations: 8 kB / 356.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.1807, allocations: 4 kB / 356.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.643e-05/0.1807, allocations: 4 kB / 356.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.1809, allocations: 43.97 kB / 356.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.753e-05/0.1809, allocations: 8.406 kB / 356.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.181, allocations: 23.89 kB / 356.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.1811, allocations: 12 kB / 356.9 MB, free: 13.08 MB / 302.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.000193/0.1813, allocations: 134 kB / 357.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.1815, allocations: 97.45 kB / 357.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.43e-05/0.1815, allocations: 16.95 kB / 357.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.1816, allocations: 0 / 357.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/0.1816, allocations: 7.984 kB / 357.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1816, allocations: 0 / 357.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000352/0.1819, allocations: 217.4 kB / 357.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.182, allocations: 0 / 357.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002515/0.1822, allocations: 47.95 kB / 357.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.1822, allocations: 0 / 357.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.1823, allocations: 0 / 357.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.952e-06/0.1823, allocations: 4 kB / 357.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.1823, allocations: 0 / 357.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006891/0.183, allocations: 383.4 kB / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.707e-05/0.1831, allocations: 92.89 kB / 357.9 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.17e-05/0.1831, allocations: 4 kB / 357.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.1833, allocations: 11.92 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.305e-05/0.1833, allocations: 8 kB / 358 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.1833, allocations: 4 kB / 358 MB, free: 11.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001036/0.1834, allocations: 114.2 kB / 358.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1835, allocations: 0 / 358.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003436/0.1838, allocations: 24 kB / 358.1 MB, free: 11.84 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.001083/0.1849, allocations: 0.926 MB / 359 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004329/0.1853, allocations: 136.6 kB / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.1854, allocations: 0 / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.1855, allocations: 28.05 kB / 359.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005952/0.1861, allocations: 73.98 kB / 359.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003443/0.1895, allocations: 2.086 MB / 361.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004607/0.19, allocations: 0.7123 MB / 362 MB, free: 7.641 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.263e-05/0.1901, allocations: 17.08 kB / 362.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.898e-05/0.1902, allocations: 39.42 kB / 362.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1902, allocations: 0 / 362.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02926/0.2194, allocations: 2.946 MB / 365 MB, free: 4.809 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.33/9.549, allocations: 8.25 kB / 365.1 MB, free: 4.801 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches