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.0017/0.001699, allocations: 109.8 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.001956/0.001956, allocations: 199 kB / 18 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.195/2.195, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002122/0.002122, allocations: 47.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5859/0.5881, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.008297/0.5965, allocations: 2.025 MB / 402.2 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.5989, allocations: 0.5687 MB / 402.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004279/0.5994, allocations: 4 kB / 402.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00028/0.5997, allocations: 19.73 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000504/0.6003, allocations: 35.7 kB / 402.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007624/0.6011, allocations: 67.86 kB / 402.9 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005172/0.6017, allocations: 131.5 kB / 403.1 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003169/0.602, allocations: 53.84 kB / 403.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.6022, allocations: 55.78 kB / 403.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.6024, allocations: 59.7 kB / 403.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.842e-05/0.6025, allocations: 8 kB / 403.2 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.899e-05/0.6025, allocations: 12 kB / 403.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.614e-05/0.6026, allocations: 31.91 kB / 403.3 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.6028, allocations: 63.61 kB / 403.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003786/0.6032, allocations: 153 kB / 403.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.6032, allocations: 3.984 kB / 403.5 MB, free: 5.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.6032, allocations: 0 / 403.5 MB, free: 5.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.6032, allocations: 0 / 403.5 MB, free: 5.547 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.001281/0.6045, allocations: 461.9 kB / 403.9 MB, free: 5.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.008e-05/0.6046, allocations: 8.031 kB / 403.9 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.828e-05/0.6047, allocations: 50.73 kB / 404 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.83e-05/0.6048, allocations: 16.75 kB / 404 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006586/0.6055, allocations: 216 kB / 404.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.6055, allocations: 8.375 kB / 404.2 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.979e-05/0.6056, allocations: 12.38 kB / 404.2 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009831/0.6066, allocations: 267.4 kB / 404.5 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.237e-05/0.6067, allocations: 11.84 kB / 404.5 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.6067, allocations: 8 kB / 404.5 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.6067, allocations: 4 kB / 404.5 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.6072, allocations: 83.88 kB / 404.6 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001516/0.6087, allocations: 0.5921 MB / 405.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006856/0.6094, allocations: 147.9 kB / 405.3 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003036/0.6098, allocations: 74.64 kB / 405.4 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.583e-05/0.6098, allocations: 11.98 kB / 405.4 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.519e-05/0.6099, allocations: 34.5 kB / 405.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 6.071e-06/0.61, allocations: 4 kB / 405.5 MB, free: 3.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.001018/0.611, allocations: 189.2 kB / 405.7 MB, free: 3.137 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001952/0.6112, allocations: 114.9 kB / 405.8 MB, free: 3 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003451/0.6116, allocations: 162.2 kB / 405.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.668e-05/0.6116, allocations: 29.7 kB / 406 MB, free: 2.797 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.6118, allocations: 108.5 kB / 406.1 MB, free: 2.688 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.223e-05/0.6119, allocations: 27.64 kB / 406.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.612, allocations: 37.62 kB / 406.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002482/0.6123, allocations: 326.8 kB / 406.4 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002189/0.6126, allocations: 39.97 kB / 406.5 MB, free: 2.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003557/0.6129, allocations: 139.3 kB / 406.6 MB, free: 2.066 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006185/0.6136, allocations: 189.5 kB / 406.8 MB, free: 1.832 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.426e-05/0.6136, allocations: 3.938 kB / 406.8 MB, free: 1.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006971/0.6143, allocations: 189.7 kB / 407 MB, free: 1.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.882e-05/0.6144, allocations: 14.44 kB / 407 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.829e-05/0.6144, allocations: 4.047 kB / 407 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.743e-05/0.6145, allocations: 11.97 kB / 407 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003163/0.6148, allocations: 39.98 kB / 407.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.687e-05/0.6148, allocations: 12.31 kB / 407.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.6151, allocations: 19.83 kB / 407.1 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.598e-05/0.6152, allocations: 12 kB / 407.1 MB, free: 1.527 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.0003637/0.6156, allocations: 141.9 kB / 407.2 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003052/0.6159, allocations: 93.38 kB / 407.3 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001743/0.6161, allocations: 20.72 kB / 407.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.6161, allocations: 4 kB / 407.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.6162, allocations: 0 / 407.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.6162, allocations: 7.984 kB / 407.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005113/0.6167, allocations: 213.5 kB / 407.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.6167, allocations: 0 / 407.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003026/0.617, allocations: 43.97 kB / 407.6 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.6171, allocations: 0 / 407.6 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.6171, allocations: 8 kB / 407.6 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.6171, allocations: 0 / 407.6 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.6171, allocations: 0 / 407.6 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009687/0.6181, allocations: 390.6 kB / 408 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/0.6183, allocations: 104.9 kB / 408.1 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.128e-05/0.6184, allocations: 8 kB / 408.1 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.6186, allocations: 11.92 kB / 408.1 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.77e-05/0.6187, allocations: 0 / 408.1 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.6187, allocations: 8 kB / 408.1 MB, free: 400 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001518/0.6189, allocations: 119.2 kB / 408.3 MB, free: 280 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6189, allocations: 0 / 408.3 MB, free: 280 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006224/0.6195, allocations: 32.06 kB / 408.3 MB, free: 248 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.001586/0.6211, allocations: 0.9192 MB / 409.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006106/0.6218, allocations: 123.7 kB / 409.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.6218, allocations: 0 / 409.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.622, allocations: 28.86 kB / 409.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000991/0.623, allocations: 78.56 kB / 409.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004609/0.6276, allocations: 2.1 MB / 411.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006606/0.6284, allocations: 0.72 MB / 412.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.6285, allocations: 13.42 kB / 412.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.6287, allocations: 39.42 kB / 412.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of SimCode: time 2.094e-06/0.6287, allocations: 0 / 412.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03994/0.6687, allocations: 3.034 MB / 415.3 MB, free: 9.145 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.9, allocations: 11.2 kB / 415.3 MB, free: 9.137 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