Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009595/0.0009644, allocations: 191.8 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000804/0.000804, allocations: 94.91 kB / 296.7 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002338/0.000234, allocations: 8 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2106, allocations: 51.3 MB / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.001869/0.2125, allocations: 1.731 MB / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006974/0.2133, allocations: 0.4926 MB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.2134, allocations: 5.188 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.068e-05/0.2135, allocations: 7.922 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.567e-05/0.2136, allocations: 25.59 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003098/0.2139, allocations: 35.97 kB / 410.4 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.214, allocations: 123.5 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.2142, allocations: 51.89 kB / 410.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.109e-05/0.2142, allocations: 37.98 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.956e-05/0.2143, allocations: 43.72 kB / 410.7 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.154e-05/0.2143, allocations: 8 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.9e-05/0.2143, allocations: 4 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.96e-05/0.2144, allocations: 19.91 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.463e-05/0.2144, allocations: 73.44 kB / 410.8 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.2145, allocations: 90.08 kB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2145, allocations: 0 / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2146, allocations: 0 / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.2146, allocations: 0.5625 kB / 410.9 MB, free: 24.9 MB / 298.7 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.0004705/0.215, allocations: 419.2 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.2151, allocations: 16.02 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.2151, allocations: 42.75 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.138e-05/0.2152, allocations: 16.75 kB / 411.3 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.2153, allocations: 204.1 kB / 411.5 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.2153, allocations: 8.375 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.06e-05/0.2154, allocations: 18.97 kB / 411.6 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004283/0.2158, allocations: 238.7 kB / 411.8 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.2158, allocations: 0 / 411.8 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.2159, allocations: 8 kB / 411.8 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.2159, allocations: 0 / 411.8 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002284/0.2161, allocations: 95.88 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005227/0.2166, allocations: 0.5921 MB / 412.5 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002918/0.2169, allocations: 159.8 kB / 412.7 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.2171, allocations: 78.64 kB / 412.7 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.2171, allocations: 8 kB / 412.7 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.378e-05/0.2171, allocations: 30.56 kB / 412.8 MB, free: 22.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.2171, allocations: 4 kB / 412.8 MB, free: 22.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004492/0.2176, allocations: 197.2 kB / 413 MB, free: 22.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.2177, allocations: 118.9 kB / 413.1 MB, free: 22.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.2178, allocations: 140.3 kB / 413.2 MB, free: 22.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.2178, allocations: 29.7 kB / 413.2 MB, free: 22.24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.287e-05/0.2179, allocations: 112 kB / 413.4 MB, free: 22.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.2179, allocations: 31.62 kB / 413.4 MB, free: 22.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.602e-06/0.2179, allocations: 4 kB / 413.4 MB, free: 22.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.817e-05/0.218, allocations: 322.8 kB / 413.7 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.2181, allocations: 47.91 kB / 413.8 MB, free: 21.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.2182, allocations: 144.5 kB / 413.9 MB, free: 21.53 MB / 298.7 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.0003665/0.2186, allocations: 292.3 kB / 414.2 MB, free: 21.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2186, allocations: 0 / 414.2 MB, free: 21.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003222/0.2189, allocations: 209.1 kB / 414.4 MB, free: 20.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.219, allocations: 8 kB / 414.4 MB, free: 20.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.219, allocations: 4 kB / 414.4 MB, free: 20.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.219, allocations: 4 kB / 414.4 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.2191, allocations: 51.91 kB / 414.5 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.2191, allocations: 7.938 kB / 414.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.452e-05/0.2192, allocations: 28.2 kB / 414.5 MB, free: 20.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.2193, allocations: 12 kB / 414.5 MB, free: 20.86 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.208e-05/0.2193, allocations: 133.7 kB / 414.6 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.2195, allocations: 85.91 kB / 414.7 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.769e-05/0.2195, allocations: 20.8 kB / 414.7 MB, free: 20.6 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.2195, allocations: 3.938 kB / 414.7 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2195, allocations: 4 kB / 414.7 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2196, allocations: 0 / 414.7 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002001/0.2198, allocations: 213.5 kB / 415 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2198, allocations: 0 / 415 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001982/0.22, allocations: 47.91 kB / 415 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.22, allocations: 4 kB / 415 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.22, allocations: 3.984 kB / 415 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.22, allocations: 0 / 415 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.22, allocations: 7.984 kB / 415 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004389/0.2205, allocations: 400.2 kB / 415.4 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.575e-05/0.2205, allocations: 92.94 kB / 415.5 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.2205, allocations: 4 kB / 415.5 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.2207, allocations: 8 kB / 415.5 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.625e-05/0.2207, allocations: 11.98 kB / 415.5 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.2207, allocations: 4 kB / 415.5 MB, free: 19.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.633e-05/0.2207, allocations: 102.4 kB / 415.6 MB, free: 19.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2208, allocations: 0 / 415.6 MB, free: 19.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002865/0.221, allocations: 31.94 kB / 415.7 MB, free: 19.59 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005694/0.2216, allocations: 0.9395 MB / 416.6 MB, free: 18.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000296/0.2219, allocations: 132.2 kB / 416.7 MB, free: 18.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2219, allocations: 3.938 kB / 416.7 MB, free: 18.49 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.105e-05/0.222, allocations: 36.39 kB / 416.8 MB, free: 18.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.2225, allocations: 56.45 kB / 416.8 MB, free: 18.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.2239, allocations: 1.109 MB / 417.9 MB, free: 17.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.2241, allocations: 0.7126 MB / 418.6 MB, free: 16.44 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.139e-05/0.2241, allocations: 39.42 kB / 418.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2241, allocations: 0 / 418.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.668/2.892, allocations: 1.998 MB / 420.7 MB, free: 14.41 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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.phi_support,torque.tau,torque.useSupport