Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009862/0.0009862, allocations: 192.1 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.228/1.228, allocations: 226.5 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008416/0.0008414, allocations: 93.27 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002398/0.00024, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2124, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.001695/0.2141, allocations: 1.7 MB / 409.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007053/0.2148, allocations: 0.5566 MB / 410.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.124e-05/0.2149, allocations: 7.938 kB / 410.4 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.679e-05/0.215, allocations: 9.484 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.2152, allocations: 31.78 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.2154, allocations: 59.88 kB / 410.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001238/0.2156, allocations: 116.2 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.2157, allocations: 48.95 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.64e-05/0.2157, allocations: 39.8 kB / 410.7 MB, free: 25.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.704e-05/0.2158, allocations: 47.77 kB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.891e-05/0.2158, allocations: 4.688 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.805e-05/0.2159, allocations: 4 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.913e-05/0.2159, allocations: 28.86 kB / 410.8 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.032e-05/0.216, allocations: 77.38 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.504e-05/0.2161, allocations: 100.5 kB / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2161, allocations: 0 / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2161, allocations: 0 / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.2161, allocations: 0 / 410.9 MB, free: 24.87 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004732/0.2166, allocations: 442.8 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.2166, allocations: 11.56 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.708e-05/0.2167, allocations: 46.75 kB / 411.4 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.276e-05/0.2167, allocations: 16.75 kB / 411.4 MB, free: 24.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.2169, allocations: 213 kB / 411.7 MB, free: 24.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.2169, allocations: 16.31 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.639e-05/0.2169, allocations: 20.28 kB / 411.7 MB, free: 24.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004121/0.2173, allocations: 260.3 kB / 411.9 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.2173, allocations: 4 kB / 412 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.2174, allocations: 4 kB / 412 MB, free: 23.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.2174, allocations: 4 kB / 412 MB, free: 23.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002237/0.2176, allocations: 99.86 kB / 412.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004407/0.218, allocations: 0.5921 MB / 412.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002831/0.2183, allocations: 155.7 kB / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.2185, allocations: 86.61 kB / 412.9 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.2185, allocations: 8.125 kB / 412.9 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.282e-05/0.2185, allocations: 34.56 kB / 412.9 MB, free: 22.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.2185, allocations: 0 / 412.9 MB, free: 22.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.000456/0.219, allocations: 205.2 kB / 413.1 MB, free: 22.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.219, allocations: 114.8 kB / 413.2 MB, free: 22.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.953e-05/0.2191, allocations: 162.3 kB / 413.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.639e-06/0.2192, allocations: 25.7 kB / 413.4 MB, free: 22.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.607e-05/0.2192, allocations: 116.4 kB / 413.5 MB, free: 21.99 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.2192, allocations: 27.64 kB / 413.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-06/0.2192, allocations: 7.938 kB / 413.6 MB, free: 21.95 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.158e-05/0.2193, allocations: 322.8 kB / 413.9 MB, free: 21.63 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.2194, allocations: 39.97 kB / 413.9 MB, free: 21.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.2195, allocations: 148.5 kB / 414.1 MB, free: 21.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.2197, allocations: 193.5 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.2198, allocations: 4 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003053/0.2201, allocations: 209.1 kB / 414.5 MB, free: 20.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.2201, allocations: 4 kB / 414.5 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.2201, allocations: 4.469 kB / 414.5 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.2201, allocations: 8.375 kB / 414.5 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.2203, allocations: 51.91 kB / 414.5 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.2203, allocations: 4 kB / 414.5 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.2204, allocations: 27.83 kB / 414.6 MB, free: 20.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.2204, allocations: 11.94 kB / 414.6 MB, free: 20.84 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.247e-05/0.2205, allocations: 133.7 kB / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.2206, allocations: 97.44 kB / 414.8 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.666e-05/0.2207, allocations: 20.7 kB / 414.8 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2207, allocations: 4 kB / 414.8 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.2207, allocations: 0 / 414.8 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2207, allocations: 0 / 414.8 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001967/0.2209, allocations: 221.5 kB / 415 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2209, allocations: 0 / 415 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.2211, allocations: 35.98 kB / 415.1 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2211, allocations: 0 / 415.1 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.2211, allocations: 8 kB / 415.1 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.2211, allocations: 7.922 kB / 415.1 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2211, allocations: 0 / 415.1 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004192/0.2216, allocations: 404.1 kB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.878e-05/0.2216, allocations: 104.9 kB / 415.6 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.2216, allocations: 4 kB / 415.6 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.2218, allocations: 8.234 kB / 415.6 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.2218, allocations: 16.05 kB / 415.6 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.2218, allocations: 4 kB / 415.6 MB, free: 19.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.942e-05/0.2219, allocations: 120.1 kB / 415.7 MB, free: 19.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.102e-06/0.2219, allocations: 0 / 415.7 MB, free: 19.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002841/0.2222, allocations: 27.94 kB / 415.8 MB, free: 19.54 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.0005473/0.2228, allocations: 0.9394 MB / 416.7 MB, free: 18.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002695/0.223, allocations: 128.7 kB / 416.8 MB, free: 18.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2231, allocations: 0 / 416.8 MB, free: 18.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.029e-05/0.2231, allocations: 39.98 kB / 416.9 MB, free: 18.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000458/0.2236, allocations: 63.97 kB / 416.9 MB, free: 18.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.2249, allocations: 1.106 MB / 418 MB, free: 17.12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001261/0.2251, allocations: 0.7282 MB / 418.8 MB, free: 16.37 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.106e-05/0.2251, allocations: 39.42 kB / 418.8 MB, free: 16.33 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2251, allocations: 0 / 418.8 MB, free: 16.33 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.536/2.761, allocations: 1.986 MB / 420.8 MB, free: 14.36 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.Ts,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.resolutionFactor,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