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.001894/0.001894, allocations: 103.9 kB / 17.06 MB, free: 6.012 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.00223/0.00223, 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 2.036/2.036, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001825, allocations: 43.94 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4065, allocations: 49.42 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004559/0.4111, allocations: 2.006 MB / 402.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.4124, allocations: 0.5064 MB / 402.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002342/0.4127, allocations: 0 / 402.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.4129, allocations: 19.8 kB / 402.7 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001274/0.4131, allocations: 23.72 kB / 402.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004205/0.4135, allocations: 59.88 kB / 402.8 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002547/0.4138, allocations: 119.6 kB / 402.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000197/0.414, allocations: 53.41 kB / 403 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.4141, allocations: 47.8 kB / 403 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.4142, allocations: 55.77 kB / 403.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.705e-05/0.4143, allocations: 8 kB / 403.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.621e-05/0.4143, allocations: 16 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.851e-05/0.4143, allocations: 27.91 kB / 403.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.14e-05/0.4144, allocations: 55.67 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002572/0.4147, allocations: 129.1 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.4147, allocations: 0 / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.4147, allocations: 0 / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.4147, allocations: 0 / 403.3 MB, free: 5.711 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.0007835/0.4155, allocations: 423.1 kB / 403.7 MB, free: 5.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.4156, allocations: 15.89 kB / 403.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.228e-05/0.4157, allocations: 42.75 kB / 403.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.551e-05/0.4157, allocations: 20.75 kB / 403.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003205/0.416, allocations: 208.1 kB / 404 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.4161, allocations: 8.375 kB / 404 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.397e-05/0.4161, allocations: 12.38 kB / 404 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005716/0.4167, allocations: 250.6 kB / 404.3 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.4167, allocations: 3.906 kB / 404.3 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.938e-05/0.4167, allocations: 8 kB / 404.3 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.4168, allocations: 0 / 404.3 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002857/0.4171, allocations: 95.86 kB / 404.4 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008333/0.4179, allocations: 0.5726 MB / 405 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003002/0.4182, allocations: 155.8 kB / 405.1 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.4184, allocations: 74.62 kB / 405.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.4184, allocations: 4 kB / 405.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.4185, allocations: 38.5 kB / 405.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.894e-06/0.4185, allocations: 0 / 405.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005345/0.419, allocations: 177.3 kB / 405.4 MB, free: 3.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.858e-05/0.4191, allocations: 110.8 kB / 405.5 MB, free: 3.254 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.4193, allocations: 133.8 kB / 405.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.4193, allocations: 29.7 kB / 405.7 MB, free: 3.078 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.262e-05/0.4194, allocations: 115.9 kB / 405.8 MB, free: 2.961 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.312e-05/0.4194, allocations: 31.62 kB / 405.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.053e-05/0.4195, allocations: 41.66 kB / 405.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.4196, allocations: 318.8 kB / 406.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.4197, allocations: 31.98 kB / 406.2 MB, free: 2.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.4199, allocations: 132.8 kB / 406.3 MB, free: 2.355 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002885/0.4202, allocations: 176.7 kB / 406.5 MB, free: 2.137 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.027e-05/0.4203, allocations: 4 kB / 406.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003849/0.4206, allocations: 185.2 kB / 406.7 MB, free: 1.945 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.4207, allocations: 7.984 kB / 406.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.4207, allocations: 8.375 kB / 406.7 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.4207, allocations: 8 kB / 406.7 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.4209, allocations: 39.92 kB / 406.7 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.4209, allocations: 8 kB / 406.7 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.4211, allocations: 23.83 kB / 406.8 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.4211, allocations: 8 kB / 406.8 MB, free: 1.844 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.000124/0.4212, allocations: 125.8 kB / 406.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.4214, allocations: 82.14 kB / 407 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.692e-05/0.4214, allocations: 32.73 kB / 407 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.4214, allocations: 15.86 kB / 407 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.4215, allocations: 0 / 407 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.4215, allocations: 0 / 407 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003076/0.4218, allocations: 205.5 kB / 407.2 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.4218, allocations: 0 / 407.2 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.422, allocations: 31.98 kB / 407.3 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.422, allocations: 0 / 407.3 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.422, allocations: 15.92 kB / 407.3 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.422, allocations: 3.938 kB / 407.3 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.422, allocations: 0 / 407.3 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005667/0.4226, allocations: 370.4 kB / 407.6 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.741e-05/0.4227, allocations: 85.05 kB / 407.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.951e-05/0.4227, allocations: 7.938 kB / 407.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001359/0.4229, allocations: 16.05 kB / 407.8 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.199e-05/0.4229, allocations: 0 / 407.8 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.4229, allocations: 11.98 kB / 407.8 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.43e-05/0.423, allocations: 95.27 kB / 407.9 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.423, allocations: 3.938 kB / 407.9 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003418/0.4234, allocations: 31.84 kB / 407.9 MB, free: 0.6289 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.001096/0.4245, allocations: 0.9076 MB / 408.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003902/0.4249, allocations: 120.3 kB / 408.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.4249, allocations: 4 kB / 408.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.425, allocations: 27.92 kB / 408.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005685/0.4256, allocations: 53.44 kB / 409 MB, free: 15.49 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.4284, allocations: 2.035 MB / 411 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.4287, allocations: 0.7123 MB / 411.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.688e-05/0.4288, allocations: 12.59 kB / 411.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.68e-05/0.4289, allocations: 35.42 kB / 411.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4289, allocations: 0 / 411.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02638/0.4553, allocations: 2.789 MB / 414.6 MB, free: 9.891 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.44, allocations: 21.45 kB / 414.6 MB, free: 9.875 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