Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.002055/0.002064, allocations: 106 kB / 17.06 MB, free: 6.016 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.003912/0.003912, allocations: 195 kB / 18 MB, free: 5.094 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.488/3.488, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 51.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.11/1.112, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.02492/1.137, allocations: 1.995 MB / 402.2 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/1.138, allocations: 0.5103 MB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002665/1.139, allocations: 4 kB / 402.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/1.139, allocations: 15.8 kB / 402.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002208/1.139, allocations: 27.72 kB / 402.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000686/1.14, allocations: 58.5 kB / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003751/1.14, allocations: 115.6 kB / 402.9 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/1.141, allocations: 57.41 kB / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/1.141, allocations: 43.86 kB / 403 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/1.141, allocations: 55.7 kB / 403.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/1.141, allocations: 8 kB / 403.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.087e-05/1.141, allocations: 12 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.694e-05/1.141, allocations: 27.91 kB / 403.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/1.141, allocations: 63.61 kB / 403.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003434/1.142, allocations: 129.1 kB / 403.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/1.142, allocations: 4 kB / 403.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.675e-06/1.142, allocations: 0 / 403.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/1.142, allocations: 0 / 403.3 MB, free: 5.699 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0009995/1.143, allocations: 423.1 kB / 403.7 MB, free: 5.238 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.229e-05/1.143, allocations: 11.89 kB / 403.7 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.064e-05/1.143, allocations: 46.73 kB / 403.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.532e-05/1.143, allocations: 20.69 kB / 403.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005129/1.144, allocations: 208.1 kB / 404 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.036e-05/1.144, allocations: 8.375 kB / 404 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.793e-05/1.144, allocations: 16.38 kB / 404 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009667/1.153, allocations: 246.7 kB / 404.3 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.675e-05/1.154, allocations: 7.891 kB / 404.3 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.2e-05/1.154, allocations: 8 kB / 404.3 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.038e-05/1.154, allocations: 4 kB / 404.3 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004793/1.154, allocations: 79.88 kB / 404.4 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/1.156, allocations: 0.5843 MB / 405 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004124/1.156, allocations: 151.9 kB / 405.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002829/1.156, allocations: 70.64 kB / 405.2 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.447e-05/1.156, allocations: 7.938 kB / 405.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.302e-05/1.156, allocations: 38.56 kB / 405.2 MB, free: 3.555 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 3.036e-06/1.156, allocations: 0 / 405.2 MB, free: 3.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009362/1.157, allocations: 181.3 kB / 405.4 MB, free: 3.371 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001796/1.158, allocations: 110.8 kB / 405.5 MB, free: 3.238 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/1.158, allocations: 125.5 kB / 405.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/1.158, allocations: 33.81 kB / 405.7 MB, free: 3.066 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/1.158, allocations: 115.9 kB / 405.8 MB, free: 2.949 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.897e-05/1.158, allocations: 31.64 kB / 405.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/1.158, allocations: 37.66 kB / 405.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002835/1.158, allocations: 318.8 kB / 406.2 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/1.159, allocations: 35.97 kB / 406.2 MB, free: 2.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002664/1.159, allocations: 128.8 kB / 406.3 MB, free: 2.348 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005454/1.16, allocations: 176.7 kB / 406.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-06/1.16, allocations: 8.359 kB / 406.5 MB, free: 2.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006752/1.16, allocations: 185.2 kB / 406.7 MB, free: 1.934 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.754e-05/1.16, allocations: 4 kB / 406.7 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.983e-05/1.16, allocations: 7.938 kB / 406.7 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.46e-05/1.16, allocations: 7.938 kB / 406.7 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000317/1.161, allocations: 56.34 kB / 406.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.085e-05/1.161, allocations: 8 kB / 406.8 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001919/1.161, allocations: 15.84 kB / 406.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/1.161, allocations: 12 kB / 406.8 MB, free: 1.824 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001946/1.161, allocations: 129.8 kB / 406.9 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/1.162, allocations: 85.53 kB / 407 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.479e-05/1.162, allocations: 16.66 kB / 407 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/1.162, allocations: 4 kB / 407 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/1.162, allocations: 0 / 407 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/1.162, allocations: 4 kB / 407 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005419/1.162, allocations: 205.7 kB / 407.2 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/1.162, allocations: 4 kB / 407.2 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/1.163, allocations: 35.91 kB / 407.3 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.754e-06/1.163, allocations: 0 / 407.3 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.374e-05/1.163, allocations: 11.92 kB / 407.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/1.163, allocations: 3.938 kB / 407.3 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/1.163, allocations: 4 kB / 407.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009737/1.164, allocations: 367.5 kB / 407.6 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.075e-05/1.164, allocations: 92.97 kB / 407.7 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.366e-05/1.164, allocations: 7.938 kB / 407.7 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/1.164, allocations: 8 kB / 407.8 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.663e-05/1.164, allocations: 8.047 kB / 407.8 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/1.164, allocations: 4 kB / 407.8 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001368/1.164, allocations: 99.27 kB / 407.9 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.62e-07/1.164, allocations: 0 / 407.9 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005983/1.165, allocations: 31.84 kB / 407.9 MB, free: 0.6172 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 (14): * Single equations (assignments): 14 * 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.001451/1.166, allocations: 0.9135 MB / 408.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005687/1.167, allocations: 120.6 kB / 408.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/1.167, allocations: 4.094 kB / 408.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001722/1.167, allocations: 31.91 kB / 409 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01697/1.184, allocations: 47.95 kB / 409 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004871/1.189, allocations: 2.032 MB / 411 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006448/1.19, allocations: 0.7123 MB / 411.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001148/1.19, allocations: 16.62 kB / 411.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/1.19, allocations: 27.44 kB / 411.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of SimCode: time 3.958e-06/1.19, allocations: 0 / 411.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1913/1.382, allocations: 2.79 MB / 414.6 MB, free: 9.879 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.45/18.83, allocations: 13.42 kB / 414.6 MB, free: 9.871 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches