Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.416/1.416, allocations: 230.6 MB / 258.3 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 47.92 kB / 378.5 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2881, allocations: 53.36 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003588/0.2917, allocations: 2.039 MB / 433.9 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.2928, allocations: 0.5492 MB / 434.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.2929, allocations: 7.938 kB / 434.5 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.293, allocations: 15.8 kB / 434.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.635e-05/0.2931, allocations: 23.78 kB / 434.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.2934, allocations: 55.88 kB / 434.6 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.2936, allocations: 115.6 kB / 434.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/0.2938, allocations: 51.42 kB / 434.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.08e-05/0.2939, allocations: 55.73 kB / 434.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.294, allocations: 55.77 kB / 434.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.844e-05/0.294, allocations: 8 kB / 434.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.375e-05/0.294, allocations: 12 kB / 434.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.791e-05/0.2941, allocations: 27.91 kB / 434.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.021e-05/0.2941, allocations: 55.67 kB / 435 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002042/0.2943, allocations: 124.3 kB / 435.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2943, allocations: 3.938 kB / 435.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2943, allocations: 0 / 435.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.2944, allocations: 0 / 435.1 MB, free: 3.66 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.0006042/0.295, allocations: 357.8 kB / 435.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.295, allocations: 12.03 kB / 435.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.648e-05/0.295, allocations: 4.188 kB / 435.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.896e-05/0.2951, allocations: 42.75 kB / 435.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.574e-05/0.2951, allocations: 12.84 kB / 435.5 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000254/0.2954, allocations: 150.3 kB / 435.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.2954, allocations: 12.38 kB / 435.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.795e-05/0.2954, allocations: 20.31 kB / 435.7 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005305/0.2959, allocations: 250.2 kB / 435.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.296, allocations: 0 / 435.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.296, allocations: 11.98 kB / 435.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.296, allocations: 0 / 435.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002536/0.2962, allocations: 87.88 kB / 436 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000636/0.2969, allocations: 0.531 MB / 436.6 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/0.2972, allocations: 139.9 kB / 436.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.2973, allocations: 70.64 kB / 436.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.2973, allocations: 7.969 kB / 436.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.2974, allocations: 38.56 kB / 436.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.2974, allocations: 0 / 436.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005196/0.2979, allocations: 177.4 kB / 437 MB, free: 1.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.508e-05/0.298, allocations: 114.8 kB / 437.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.2981, allocations: 130.1 kB / 437.2 MB, free: 1.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.2981, allocations: 25.7 kB / 437.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.527e-05/0.2982, allocations: 116.2 kB / 437.4 MB, free: 1.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.103e-05/0.2982, allocations: 27.78 kB / 437.4 MB, free: 1.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.552e-05/0.2983, allocations: 37.84 kB / 437.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.2984, allocations: 322.8 kB / 437.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.2985, allocations: 39.91 kB / 437.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.2987, allocations: 128.8 kB / 437.9 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002947/0.299, allocations: 176.7 kB / 438.1 MB, free: 328 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.299, allocations: 0 / 438.1 MB, free: 328 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003676/0.2994, allocations: 197.2 kB / 438.3 MB, free: 124 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.2994, allocations: 11.94 kB / 438.3 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.555e-06/0.2994, allocations: 4 kB / 438.3 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.2994, allocations: 4 kB / 438.3 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.2996, allocations: 43.97 kB / 438.3 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.2996, allocations: 7.938 kB / 438.3 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.2997, allocations: 20.22 kB / 438.4 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.2997, allocations: 16 kB / 438.4 MB, free: 16 kB / 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.0001307/0.2998, allocations: 129.7 kB / 438.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.3, allocations: 89.45 kB / 438.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.045e-05/0.3, allocations: 16.72 kB / 438.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3, allocations: 0 / 438.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3, allocations: 4 kB / 438.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.3, allocations: 3.984 kB / 438.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002573/0.3003, allocations: 172.7 kB / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3003, allocations: 0 / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.3005, allocations: 39.97 kB / 438.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.3005, allocations: 4.172 kB / 438.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.3005, allocations: 4 kB / 438.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.3005, allocations: 3.984 kB / 438.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3005, allocations: 0 / 438.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005364/0.301, allocations: 386.1 kB / 439.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.072e-05/0.301, allocations: 11.92 kB / 439.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.3011, allocations: 3.938 kB / 439.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.3012, allocations: 11.98 kB / 439.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.39e-05/0.3012, allocations: 4 kB / 439.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.707e-06/0.3013, allocations: 4 kB / 439.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.033e-05/0.3013, allocations: 99.27 kB / 439.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3013, allocations: 4.062 kB / 439.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000313/0.3016, allocations: 27.95 kB / 439.4 MB, free: 14.94 MB / 350.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.0008428/0.3025, allocations: 0.9155 MB / 440.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003241/0.3028, allocations: 115.8 kB / 440.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3028, allocations: 0.875 kB / 440.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.3029, allocations: 31.92 kB / 440.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/0.3034, allocations: 45.62 kB / 440.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.3059, allocations: 2.039 MB / 442.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.3062, allocations: 0.7084 MB / 443.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.913e-05/0.3063, allocations: 16.62 kB / 443.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.325e-05/0.3064, allocations: 39.42 kB / 443.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3064, allocations: 0 / 443.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.3304, allocations: 2.977 MB / 446.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.15, allocations: 15.92 kB / 446.3 MB, free: 8 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 13.68166184402071]