Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.002498/0.002497, allocations: 113.2 kB / 17.06 MB, free: 5.977 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.003329/0.003329, allocations: 198.9 kB / 18.01 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.113/3.113, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001993, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7508/0.7528, allocations: 49.43 MB / 400.2 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.007806/0.7607, allocations: 2.028 MB / 402.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.7635, allocations: 0.5726 MB / 402.8 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004719/0.764, allocations: 4 kB / 402.8 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003542/0.7644, allocations: 15.8 kB / 402.8 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005304/0.7651, allocations: 31.72 kB / 402.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008196/0.7659, allocations: 78.03 kB / 402.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005287/0.7665, allocations: 123.6 kB / 403.1 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000357/0.7669, allocations: 53.86 kB / 403.1 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002057/0.7671, allocations: 55.72 kB / 403.2 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002435/0.7673, allocations: 59.7 kB / 403.2 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.244e-05/0.7674, allocations: 12 kB / 403.2 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.958e-05/0.7675, allocations: 8 kB / 403.2 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.7677, allocations: 35.91 kB / 403.3 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001411/0.7678, allocations: 67.55 kB / 403.3 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007709/0.7686, allocations: 145.1 kB / 403.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.524e-05/0.7686, allocations: 3.984 kB / 403.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.7687, allocations: 0 / 403.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.7687, allocations: 0 / 403.5 MB, free: 5.652 MB / 318.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.001357/0.7701, allocations: 454.8 kB / 403.9 MB, free: 5.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.167e-05/0.7702, allocations: 12.03 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/0.7703, allocations: 50.73 kB / 404 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.85e-05/0.7704, allocations: 16.75 kB / 404 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007264/0.7711, allocations: 216 kB / 404.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.7712, allocations: 12.38 kB / 404.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.449e-05/0.7712, allocations: 12.38 kB / 404.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000897/0.7721, allocations: 266.8 kB / 404.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.954e-05/0.7722, allocations: 3.906 kB / 404.5 MB, free: 4.516 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.765e-05/0.7722, allocations: 7.984 kB / 404.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.7723, allocations: 4 kB / 404.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004091/0.7727, allocations: 91.88 kB / 404.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.7738, allocations: 0.592 MB / 405.2 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004908/0.7743, allocations: 151.8 kB / 405.4 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.7746, allocations: 78.64 kB / 405.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.107e-05/0.7746, allocations: 7.922 kB / 405.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.7747, allocations: 38.56 kB / 405.5 MB, free: 3.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.625e-06/0.7747, allocations: 0 / 405.5 MB, free: 3.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008119/0.7755, allocations: 185.2 kB / 405.7 MB, free: 3.242 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.7757, allocations: 110.8 kB / 405.8 MB, free: 3.109 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/0.7759, allocations: 162.2 kB / 405.9 MB, free: 2.941 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.7759, allocations: 33.77 kB / 406 MB, free: 2.902 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.7761, allocations: 116.5 kB / 406.1 MB, free: 2.785 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.527e-05/0.7761, allocations: 31.64 kB / 406.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.7762, allocations: 33.62 kB / 406.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.7764, allocations: 322.8 kB / 406.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.7766, allocations: 39.97 kB / 406.5 MB, free: 2.352 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.7769, allocations: 135.4 kB / 406.6 MB, free: 2.172 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000468/0.7774, allocations: 189.5 kB / 406.8 MB, free: 1.938 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.7774, allocations: 7.938 kB / 406.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006024/0.778, allocations: 185.2 kB / 407 MB, free: 1.742 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.7781, allocations: 8 kB / 407 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.7781, allocations: 4.469 kB / 407 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.114e-05/0.7781, allocations: 11.98 kB / 407 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002456/0.7784, allocations: 47.92 kB / 407.1 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.7784, allocations: 4 kB / 407.1 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001849/0.7786, allocations: 27.83 kB / 407.1 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.7786, allocations: 8 kB / 407.1 MB, free: 1.633 MB / 318.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.0002104/0.7789, allocations: 137.7 kB / 407.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002483/0.7791, allocations: 97.75 kB / 407.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001424/0.7793, allocations: 24.72 kB / 407.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.625e-06/0.7793, allocations: 0 / 407.4 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.7793, allocations: 4 kB / 407.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.7793, allocations: 3.984 kB / 407.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004693/0.7798, allocations: 213.7 kB / 407.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.7798, allocations: 0 / 407.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002595/0.7801, allocations: 39.91 kB / 407.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.787e-06/0.7801, allocations: 4 kB / 407.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.7801, allocations: 3.984 kB / 407.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.7802, allocations: 0 / 407.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-05/0.7802, allocations: 4 kB / 407.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008385/0.781, allocations: 393.9 kB / 408 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002098/0.7813, allocations: 100.9 kB / 408.1 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.7813, allocations: 8 kB / 408.1 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.7816, allocations: 12.05 kB / 408.1 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.24e-05/0.7816, allocations: 8 kB / 408.1 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.7817, allocations: 4 kB / 408.1 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00016/0.7818, allocations: 115.2 kB / 408.3 MB, free: 388 kB / 318.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.7819, allocations: 0 / 408.3 MB, free: 388 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006331/0.7825, allocations: 31.98 kB / 408.3 MB, free: 356 kB / 318.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.001902/0.7844, allocations: 0.9153 MB / 409.2 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006305/0.7851, allocations: 131.5 kB / 409.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.7851, allocations: 0 / 409.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.7853, allocations: 23.98 kB / 409.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.7864, allocations: 72.19 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005741/0.7921, allocations: 2.111 MB / 411.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009712/0.7932, allocations: 0.72 MB / 412.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001442/0.7934, allocations: 21.41 kB / 412.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004118/0.7938, allocations: 39.42 kB / 412.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of SimCode: time 1.833e-06/0.7938, allocations: 0 / 412.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1467/0.9405, allocations: 3.034 MB / 415.3 MB, free: 9.238 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.59/19.53, allocations: 4.297 kB / 415.3 MB, free: 9.234 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches