Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.001735/0.001736, allocations: 105.2 kB / 17.06 MB, free: 5.785 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.002074/0.002074, allocations: 198.9 kB / 18 MB, free: 4.93 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.534/3.534, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 47.92 kB / 350.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7628/0.7646, allocations: 49.43 MB / 400.2 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.007533/0.7722, allocations: 2.001 MB / 402.2 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00173/0.774, allocations: 0.5258 MB / 402.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002738/0.7743, allocations: 11.94 kB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.7746, allocations: 19.8 kB / 402.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002915/0.7749, allocations: 23.73 kB / 402.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005056/0.7755, allocations: 63.8 kB / 402.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003578/0.7758, allocations: 123.6 kB / 403 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003056/0.7762, allocations: 49.38 kB / 403 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.7763, allocations: 55.83 kB / 403.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001666/0.7765, allocations: 59.7 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.301e-05/0.7766, allocations: 8 kB / 403.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.627e-05/0.7766, allocations: 12 kB / 403.2 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.894e-05/0.7767, allocations: 23.92 kB / 403.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.7768, allocations: 59.66 kB / 403.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003644/0.7772, allocations: 137.1 kB / 403.4 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.7772, allocations: 4 kB / 403.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.7772, allocations: 0 / 403.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.7773, allocations: 0 / 403.4 MB, free: 5.68 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001037/0.7783, allocations: 423.1 kB / 403.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.028e-05/0.7784, allocations: 12.03 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.745e-05/0.7785, allocations: 46.73 kB / 403.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.676e-05/0.7785, allocations: 16.75 kB / 403.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005243/0.7791, allocations: 214.6 kB / 404.1 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.7791, allocations: 8.375 kB / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.347e-05/0.7792, allocations: 16.36 kB / 404.1 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008572/0.78, allocations: 251.4 kB / 404.3 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.341e-05/0.7801, allocations: 3.984 kB / 404.3 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.7801, allocations: 8 kB / 404.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.7802, allocations: 7.938 kB / 404.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004024/0.7806, allocations: 83.92 kB / 404.4 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.7818, allocations: 0.5882 MB / 405 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005658/0.7824, allocations: 147.9 kB / 405.2 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002455/0.7827, allocations: 78.64 kB / 405.2 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.548e-05/0.7827, allocations: 3.984 kB / 405.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.561e-05/0.7828, allocations: 42.5 kB / 405.3 MB, free: 3.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.204e-06/0.7828, allocations: 0 / 405.3 MB, free: 3.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008989/0.7837, allocations: 185.3 kB / 405.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.7839, allocations: 114.8 kB / 405.6 MB, free: 3.195 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.7841, allocations: 134 kB / 405.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.7841, allocations: 29.7 kB / 405.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.7843, allocations: 108 kB / 405.9 MB, free: 2.906 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.195e-05/0.7843, allocations: 27.64 kB / 405.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.65e-05/0.7844, allocations: 37.83 kB / 405.9 MB, free: 2.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002044/0.7847, allocations: 322.8 kB / 406.2 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.7849, allocations: 35.97 kB / 406.3 MB, free: 2.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.7852, allocations: 139.3 kB / 406.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005324/0.7858, allocations: 189.5 kB / 406.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.468e-06/0.7858, allocations: 3.938 kB / 406.6 MB, free: 2.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001823/0.7876, allocations: 197.2 kB / 406.8 MB, free: 1.855 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.7877, allocations: 8 kB / 406.8 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/0.7877, allocations: 4 kB / 406.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.632e-05/0.7878, allocations: 4 kB / 406.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003242/0.7881, allocations: 43.91 kB / 406.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.903e-05/0.7882, allocations: 16.39 kB / 406.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.7884, allocations: 23.84 kB / 406.9 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.7885, allocations: 8 kB / 406.9 MB, free: 1.75 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.0002349/0.7887, allocations: 133.7 kB / 407 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002983/0.789, allocations: 85.5 kB / 407.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000132/0.7892, allocations: 20.66 kB / 407.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.7892, allocations: 4 kB / 407.1 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.7892, allocations: 0 / 407.1 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.7892, allocations: 4.219 kB / 407.1 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005204/0.7898, allocations: 213.5 kB / 407.3 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/0.7898, allocations: 4 kB / 407.3 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.7901, allocations: 35.95 kB / 407.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.907e-06/0.7902, allocations: 4.469 kB / 407.4 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.7902, allocations: 0 / 407.4 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.375e-06/0.7902, allocations: 4 kB / 407.4 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.7902, allocations: 4 kB / 407.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009953/0.7912, allocations: 395.2 kB / 407.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.382e-05/0.7913, allocations: 85.02 kB / 407.9 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.297e-05/0.7914, allocations: 4 kB / 407.9 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003257/0.7917, allocations: 7.984 kB / 407.9 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.544e-05/0.7918, allocations: 8 kB / 407.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.7919, allocations: 11.92 kB / 407.9 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001505/0.792, allocations: 102.7 kB / 408 MB, free: 0.543 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7921, allocations: 0 / 408 MB, free: 0.543 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005725/0.7926, allocations: 31.94 kB / 408 MB, free: 0.5117 MB / 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.001664/0.7943, allocations: 0.922 MB / 408.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005848/0.7949, allocations: 116.6 kB / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.7949, allocations: 0 / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.7952, allocations: 39.97 kB / 409.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/0.7976, allocations: 52.02 kB / 409.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004838/0.8025, allocations: 2.045 MB / 411.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005666/0.8031, allocations: 0.7201 MB / 411.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.8033, allocations: 9.094 kB / 411.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.8034, allocations: 35.42 kB / 412 MB, free: 12.35 MB / 334.1 MB Notification: Performance of SimCode: time 2.625e-06/0.8035, allocations: 0 / 412 MB, free: 12.35 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1488/0.9522, allocations: 2.832 MB / 414.8 MB, free: 9.664 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.78/18.73, allocations: 11.22 kB / 414.8 MB, free: 9.66 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches