Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001648/0.001648, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001987/0.001987, allocations: 212.8 kB / 24.52 MB, free: 3.914 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.382/1.382, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 47.92 kB / 378.5 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2314, allocations: 53.37 MB / 431.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003377/0.2348, allocations: 2.03 MB / 433.9 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009008/0.2357, allocations: 0.5025 MB / 434.4 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.197e-05/0.2358, allocations: 4 kB / 434.4 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.2359, allocations: 23.73 kB / 434.4 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.348e-05/0.236, allocations: 23.78 kB / 434.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.2362, allocations: 71.48 kB / 434.5 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001807/0.2364, allocations: 131.4 kB / 434.6 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.2365, allocations: 38 kB / 434.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.76e-05/0.2366, allocations: 51.78 kB / 434.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.607e-05/0.2367, allocations: 59.7 kB / 434.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.677e-05/0.2367, allocations: 8 kB / 434.8 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.212e-05/0.2367, allocations: 12 kB / 434.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.079e-05/0.2368, allocations: 23.92 kB / 434.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.132e-05/0.2368, allocations: 51.73 kB / 434.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.237, allocations: 135.3 kB / 435 MB, free: 3.512 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.237, allocations: 0 / 435 MB, free: 3.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2371, allocations: 4 kB / 435 MB, free: 3.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.2371, allocations: 4 kB / 435 MB, free: 3.504 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005831/0.2376, allocations: 356.4 kB / 435.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2377, allocations: 8.031 kB / 435.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.002e-05/0.2377, allocations: 4.188 kB / 435.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.897e-05/0.2377, allocations: 46.73 kB / 435.4 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.311e-05/0.2378, allocations: 16.84 kB / 435.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/0.2381, allocations: 153.2 kB / 435.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.2381, allocations: 12.38 kB / 435.6 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.447e-05/0.2381, allocations: 20.33 kB / 435.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004708/0.2386, allocations: 235.2 kB / 435.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.2386, allocations: 4 kB / 435.8 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.028e-05/0.2386, allocations: 7.984 kB / 435.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2386, allocations: 4 kB / 435.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002322/0.2389, allocations: 87.86 kB / 435.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006554/0.2395, allocations: 0.5193 MB / 436.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003514/0.2399, allocations: 139.9 kB / 436.6 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.24, allocations: 70.64 kB / 436.7 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.24, allocations: 3.938 kB / 436.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.2401, allocations: 42.56 kB / 436.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.2401, allocations: 0 / 436.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004866/0.2406, allocations: 181.5 kB / 436.9 MB, free: 1.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.762e-05/0.2406, allocations: 118.8 kB / 437 MB, free: 1.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.2408, allocations: 130.2 kB / 437.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.2408, allocations: 29.7 kB / 437.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.543e-05/0.2409, allocations: 120 kB / 437.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.2409, allocations: 27.78 kB / 437.3 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.527e-05/0.2409, allocations: 37.84 kB / 437.3 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.2411, allocations: 322.8 kB / 437.7 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.2412, allocations: 35.97 kB / 437.7 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.2414, allocations: 141.6 kB / 437.8 MB, free: 388 kB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.000385/0.2418, allocations: 209.5 kB / 438 MB, free: 128 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2418, allocations: 0 / 438 MB, free: 128 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003772/0.2421, allocations: 193.5 kB / 438.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.2422, allocations: 12.09 kB / 438.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.2422, allocations: 7.984 kB / 438.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.2422, allocations: 4 kB / 438.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.2423, allocations: 39.92 kB / 438.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.2423, allocations: 8 kB / 438.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.2424, allocations: 23.88 kB / 438.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.2425, allocations: 8 kB / 438.3 MB, free: 15.83 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001171/0.2426, allocations: 133.7 kB / 438.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.2427, allocations: 97.56 kB / 438.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.271e-05/0.2428, allocations: 16.72 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2428, allocations: 3.938 kB / 438.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2428, allocations: 0 / 438.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.2428, allocations: 4 kB / 438.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002504/0.243, allocations: 176.8 kB / 438.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.243, allocations: 0 / 438.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002125/0.2433, allocations: 43.95 kB / 438.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2433, allocations: 4 kB / 438.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.2433, allocations: 11.92 kB / 438.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.2433, allocations: 12 kB / 438.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2433, allocations: 0 / 438.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005392/0.2438, allocations: 387.5 kB / 439.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.064e-05/0.2438, allocations: 7.984 kB / 439.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.2439, allocations: 4 kB / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.244, allocations: 11.98 kB / 439.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.231e-05/0.244, allocations: 4 kB / 439.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.244, allocations: 7.938 kB / 439.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.997e-05/0.2441, allocations: 109.7 kB / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2441, allocations: 0 / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003107/0.2444, allocations: 31.95 kB / 439.4 MB, free: 14.7 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 (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.00079/0.2452, allocations: 0.9116 MB / 440.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003359/0.2455, allocations: 132 kB / 440.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2455, allocations: 0 / 440.4 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.343e-05/0.2456, allocations: 23.98 kB / 440.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004861/0.2461, allocations: 65.56 kB / 440.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.2487, allocations: 2.099 MB / 442.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000102/0.2488, allocations: 106.7 kB / 442.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.723e-05/0.2488, allocations: 9.078 kB / 442.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.955e-05/0.2489, allocations: 43.42 kB / 442.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2489, allocations: 0 / 442.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03249/0.2814, allocations: 3.276 MB / 446 MB, free: 8.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.92, allocations: 13.39 kB / 446 MB, free: 8.008 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.initType,PI.k,PI.u,PI.x,PI.x_start,PI.y,PI.y_start,der(PI.x),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.378702542046085]