Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001202/0.001202, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001346/0.001346, allocations: 193.5 kB / 24.49 MB, free: 3.941 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.315/1.315, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 179] 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 51.92 kB / 371.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2223, allocations: 52.18 MB / 423.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00342/0.2257, allocations: 2.003 MB / 425.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009935/0.2267, allocations: 0.5376 MB / 425.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.2268, allocations: 7.938 kB / 425.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.2269, allocations: 19.8 kB / 425.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.2271, allocations: 35.7 kB / 425.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002667/0.2273, allocations: 67.81 kB / 426 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001973/0.2275, allocations: 127.6 kB / 426.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.2277, allocations: 48.14 kB / 426.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.077e-05/0.2278, allocations: 51.8 kB / 426.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.911e-05/0.2278, allocations: 59.7 kB / 426.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.2279, allocations: 8 kB / 426.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.588e-05/0.2279, allocations: 15.94 kB / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.932e-05/0.228, allocations: 35.89 kB / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.416e-05/0.228, allocations: 55.67 kB / 426.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002169/0.2283, allocations: 147.3 kB / 426.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2283, allocations: 0 / 426.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2283, allocations: 0 / 426.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.9e-06/0.2283, allocations: 4 kB / 426.5 MB, free: 11.18 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006071/0.2289, allocations: 381.6 kB / 426.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.2289, allocations: 8.031 kB / 426.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.883e-05/0.2289, allocations: 4.188 kB / 426.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.14e-05/0.229, allocations: 50.67 kB / 427 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.229, allocations: 20.84 kB / 427 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.2292, allocations: 158.3 kB / 427.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.2293, allocations: 8.375 kB / 427.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.202e-05/0.2293, allocations: 20.27 kB / 427.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005063/0.2298, allocations: 262.4 kB / 427.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.2298, allocations: 4 kB / 427.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.2298, allocations: 4 kB / 427.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.2298, allocations: 4 kB / 427.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.2301, allocations: 87.81 kB / 427.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006078/0.2307, allocations: 0.5232 MB / 428.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003465/0.231, allocations: 135.7 kB / 428.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.2312, allocations: 78.75 kB / 428.3 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.2312, allocations: 0 / 428.3 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.2313, allocations: 38.56 kB / 428.3 MB, free: 9.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.2313, allocations: 0 / 428.3 MB, free: 9.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005091/0.2318, allocations: 189.4 kB / 428.5 MB, free: 9.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.069e-05/0.2318, allocations: 114.8 kB / 428.6 MB, free: 8.898 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.232, allocations: 158.3 kB / 428.8 MB, free: 8.734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.232, allocations: 33.7 kB / 428.8 MB, free: 8.695 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.211e-05/0.2321, allocations: 108.5 kB / 428.9 MB, free: 8.586 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.2321, allocations: 27.78 kB / 428.9 MB, free: 8.559 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.897e-05/0.2322, allocations: 41.66 kB / 429 MB, free: 8.512 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.2323, allocations: 322.8 kB / 429.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.2324, allocations: 35.92 kB / 429.3 MB, free: 8.152 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.2326, allocations: 139.8 kB / 429.5 MB, free: 7.969 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002916/0.2329, allocations: 189.5 kB / 429.6 MB, free: 7.734 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.2329, allocations: 4 kB / 429.6 MB, free: 7.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003655/0.2333, allocations: 193.3 kB / 429.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.2333, allocations: 8 kB / 429.8 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2333, allocations: 4 kB / 429.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.2333, allocations: 4 kB / 429.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.2334, allocations: 47.91 kB / 429.9 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.2335, allocations: 4 kB / 429.9 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.2336, allocations: 19.89 kB / 429.9 MB, free: 7.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.2336, allocations: 8.312 kB / 429.9 MB, free: 7.441 MB / 334.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.0001099/0.2337, allocations: 145.7 kB / 430.1 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000162/0.2338, allocations: 101.8 kB / 430.2 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.492e-05/0.2339, allocations: 20.7 kB / 430.2 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.2339, allocations: 4 kB / 430.2 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2339, allocations: 0 / 430.2 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2339, allocations: 4 kB / 430.2 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002596/0.2342, allocations: 180.5 kB / 430.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2342, allocations: 4 kB / 430.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.2344, allocations: 39.91 kB / 430.4 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.2344, allocations: 8 kB / 430.4 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.2344, allocations: 0 / 430.4 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2344, allocations: 4 kB / 430.4 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2344, allocations: 0 / 430.4 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005406/0.2349, allocations: 383.4 kB / 430.8 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.277e-05/0.235, allocations: 23.92 kB / 430.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.235, allocations: 8 kB / 430.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.2351, allocations: 8.047 kB / 430.8 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.377e-05/0.2352, allocations: 15.94 kB / 430.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.2352, allocations: 4 kB / 430.9 MB, free: 6.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.92e-05/0.2353, allocations: 120.1 kB / 431 MB, free: 6.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2353, allocations: 0 / 431 MB, free: 6.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003181/0.2356, allocations: 31.94 kB / 431 MB, free: 6.281 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 (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.0008164/0.2364, allocations: 0.9115 MB / 431.9 MB, free: 5.344 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003092/0.2367, allocations: 123.7 kB / 432 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2367, allocations: 0 / 432 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.644e-05/0.2368, allocations: 27.97 kB / 432.1 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004779/0.2373, allocations: 61.83 kB / 432.1 MB, free: 5.137 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002417/0.2397, allocations: 2.113 MB / 434.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.2398, allocations: 118.4 kB / 434.4 MB, free: 2.711 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.695e-05/0.2399, allocations: 9.438 kB / 434.4 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.02e-05/0.24, allocations: 39.42 kB / 434.4 MB, free: 2.66 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.24, allocations: 0 / 434.4 MB, free: 2.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02449/0.2644, allocations: 3.271 MB / 437.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.9, allocations: 7.188 kB / 437.7 MB, free: 15.58 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.T,PI.k,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.factor,periodicClock.resolution,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.308101726928726]