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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 191.7 kB / 24.51 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 225.7 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 47.91 kB / 371.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3049, allocations: 52.18 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003771/0.3087, allocations: 2.038 MB / 425.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009287/0.3096, allocations: 0.5065 MB / 425.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.3097, allocations: 3.938 kB / 425.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.3098, allocations: 19.8 kB / 426 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.458e-05/0.3099, allocations: 27.78 kB / 426 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003335/0.3103, allocations: 59.12 kB / 426 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.3104, allocations: 123.6 kB / 426.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.3106, allocations: 37.61 kB / 426.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.166e-05/0.3107, allocations: 47.8 kB / 426.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001019/0.3108, allocations: 63.69 kB / 426.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.3108, allocations: 8 kB / 426.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.242e-05/0.3108, allocations: 12 kB / 426.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.432e-05/0.3109, allocations: 23.92 kB / 426.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.384e-05/0.3109, allocations: 59.67 kB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.3111, allocations: 124.3 kB / 426.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3111, allocations: 4 kB / 426.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3111, allocations: 7.938 kB / 426.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.3112, allocations: 0 / 426.5 MB, free: 11.46 MB / 334.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.0006033/0.3118, allocations: 353.8 kB / 426.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.3118, allocations: 8.031 kB / 426.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.573e-05/0.3118, allocations: 4.188 kB / 426.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.564e-05/0.3119, allocations: 46.73 kB / 426.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.003e-05/0.3119, allocations: 20.84 kB / 427 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.3121, allocations: 146.3 kB / 427.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.3121, allocations: 8.375 kB / 427.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.658e-05/0.3122, allocations: 12.38 kB / 427.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005232/0.3127, allocations: 238.5 kB / 427.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.3127, allocations: 3.953 kB / 427.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.3127, allocations: 8 kB / 427.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.3128, allocations: 7.984 kB / 427.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002608/0.313, allocations: 83.81 kB / 427.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000701/0.3137, allocations: 0.5311 MB / 428 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003027/0.314, allocations: 147.9 kB / 428.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.3142, allocations: 82.55 kB / 428.2 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.3142, allocations: 4 kB / 428.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.3142, allocations: 34.56 kB / 428.3 MB, free: 9.555 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.183e-06/0.3142, allocations: 0 / 428.3 MB, free: 9.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005391/0.3148, allocations: 177.4 kB / 428.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.3149, allocations: 118.7 kB / 428.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.315, allocations: 129.6 kB / 428.7 MB, free: 9.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.315, allocations: 33.7 kB / 428.7 MB, free: 9.059 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.274e-05/0.3151, allocations: 112.1 kB / 428.8 MB, free: 8.945 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.408e-05/0.3152, allocations: 31.73 kB / 428.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.629e-05/0.3152, allocations: 33.7 kB / 428.9 MB, free: 8.875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3154, allocations: 318.8 kB / 429.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.3155, allocations: 35.97 kB / 429.2 MB, free: 8.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.3157, allocations: 128.8 kB / 429.4 MB, free: 8.348 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003165/0.316, allocations: 180.6 kB / 429.5 MB, free: 8.125 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.316, allocations: 4 kB / 429.5 MB, free: 8.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003919/0.3164, allocations: 185.3 kB / 429.7 MB, free: 7.934 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3164, allocations: 7.938 kB / 429.7 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3164, allocations: 4 kB / 429.7 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.3165, allocations: 8.422 kB / 429.7 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.3167, allocations: 43.92 kB / 429.8 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.3167, allocations: 8 kB / 429.8 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.3168, allocations: 23.88 kB / 429.8 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.3168, allocations: 8.375 kB / 429.8 MB, free: 7.832 MB / 334.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.000123/0.3169, allocations: 129.7 kB / 429.9 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.3171, allocations: 93.41 kB / 430 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.255e-05/0.3171, allocations: 20.7 kB / 430.1 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3171, allocations: 4 kB / 430.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3171, allocations: 4 kB / 430.1 MB, free: 7.566 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.3171, allocations: 0 / 430.1 MB, free: 7.566 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002844/0.3174, allocations: 172.7 kB / 430.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3174, allocations: 0 / 430.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001678/0.3176, allocations: 31.98 kB / 430.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.3176, allocations: 3.938 kB / 430.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.3176, allocations: 8 kB / 430.3 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3176, allocations: 0 / 430.3 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3176, allocations: 3.938 kB / 430.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005787/0.3182, allocations: 379.7 kB / 430.6 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.465e-05/0.3182, allocations: 15.91 kB / 430.7 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.566e-05/0.3182, allocations: 11.94 kB / 430.7 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.3184, allocations: 7.984 kB / 430.7 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.743e-05/0.3184, allocations: 4.062 kB / 430.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.3184, allocations: 15.98 kB / 430.7 MB, free: 6.863 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.686e-05/0.3185, allocations: 95.27 kB / 430.8 MB, free: 6.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3185, allocations: 0 / 430.8 MB, free: 6.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003115/0.3188, allocations: 27.95 kB / 430.8 MB, free: 6.742 MB / 334.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.0008887/0.3197, allocations: 0.9028 MB / 431.7 MB, free: 5.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003655/0.3201, allocations: 124.6 kB / 431.8 MB, free: 5.691 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3201, allocations: 0 / 431.8 MB, free: 5.691 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.3202, allocations: 27.92 kB / 431.9 MB, free: 5.664 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005499/0.3207, allocations: 55.64 kB / 431.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002801/0.3235, allocations: 2.032 MB / 434 MB, free: 3.414 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.324, allocations: 0.7162 MB / 434.7 MB, free: 2.672 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.369e-05/0.324, allocations: 4.656 kB / 434.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.097e-05/0.3241, allocations: 43.41 kB / 434.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3241, allocations: 0 / 434.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02584/0.3499, allocations: 2.968 MB / 437.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.6, allocations: 8.766 kB / 437.7 MB, free: 15.83 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=0.000989903 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.Td,PI.kd,PI.u,PI.x,PI.y,der(load.phi),der(load.w),feedback.u1,feedback.u2,feedback.y,hold1.u,hold1.y,hold1.y_start,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,periodicClock.period,periodicClock.useSolver,previous(PI.x),ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sample1.u,sample1.y,sample2.u,sample2.y,speed.flange.phi,speed.flange.tau,speed.w,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 14.188605585950427]