Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 194 kB / 17.38 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.247/1.247, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007659/0.0007657, allocations: 93.12 kB / 296.7 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002365/0.0002368, allocations: 12 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2115, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.001793/0.2134, allocations: 1.686 MB / 409.8 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006523/0.214, allocations: 0.512 MB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.139e-05/0.2142, allocations: 2.031 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.378e-05/0.2142, allocations: 11.88 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001106/0.2144, allocations: 23.84 kB / 410.4 MB, free: 25.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002008/0.2146, allocations: 39.95 kB / 410.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001207/0.2147, allocations: 116.1 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.2148, allocations: 52.27 kB / 410.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.445e-05/0.2149, allocations: 31.86 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.418e-05/0.215, allocations: 47.78 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.799e-05/0.215, allocations: 5.25 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.677e-05/0.215, allocations: 4 kB / 410.7 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.988e-05/0.215, allocations: 19.91 kB / 410.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.148e-05/0.2151, allocations: 80.31 kB / 410.8 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.184e-05/0.2152, allocations: 85.02 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2152, allocations: 0 / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2152, allocations: 0 / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.2152, allocations: 0 / 410.8 MB, free: 24.97 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004518/0.2157, allocations: 421.2 kB / 411.2 MB, free: 24.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.2157, allocations: 8.031 kB / 411.3 MB, free: 24.51 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.113e-05/0.2157, allocations: 46.73 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.943e-05/0.2158, allocations: 16.75 kB / 411.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001687/0.2159, allocations: 203.1 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.867e-06/0.216, allocations: 8.375 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.76e-05/0.216, allocations: 12.38 kB / 411.5 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004126/0.2164, allocations: 262.6 kB / 411.8 MB, free: 23.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.2164, allocations: 0 / 411.8 MB, free: 23.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.2165, allocations: 8 kB / 411.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.2165, allocations: 4 kB / 411.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.2167, allocations: 103.8 kB / 411.9 MB, free: 23.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004369/0.2171, allocations: 0.5881 MB / 412.5 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002811/0.2174, allocations: 163.8 kB / 412.7 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.2176, allocations: 78.62 kB / 412.7 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.2176, allocations: 4 kB / 412.7 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.285e-05/0.2176, allocations: 34.55 kB / 412.8 MB, free: 22.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.2176, allocations: 4 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004493/0.2181, allocations: 197.3 kB / 413 MB, free: 22.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.2182, allocations: 114.9 kB / 413.1 MB, free: 22.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.402e-05/0.2182, allocations: 132.9 kB / 413.2 MB, free: 22.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.468e-06/0.2182, allocations: 29.64 kB / 413.2 MB, free: 22.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.708e-05/0.2183, allocations: 111.9 kB / 413.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.2183, allocations: 35.62 kB / 413.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-06/0.2183, allocations: 0 / 413.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.509e-05/0.2184, allocations: 326.8 kB / 413.7 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.2185, allocations: 39.97 kB / 413.7 MB, free: 21.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.2186, allocations: 144.9 kB / 413.9 MB, free: 21.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.2189, allocations: 197.4 kB / 414.1 MB, free: 21.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2189, allocations: 4 kB / 414.1 MB, free: 21.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003009/0.2192, allocations: 201.6 kB / 414.3 MB, free: 21.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.2192, allocations: 8 kB / 414.3 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2192, allocations: 4 kB / 414.3 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.2192, allocations: 4 kB / 414.3 MB, free: 21.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.2194, allocations: 55.84 kB / 414.3 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.2194, allocations: 8.375 kB / 414.4 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.376e-05/0.2195, allocations: 23.83 kB / 414.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.2195, allocations: 12 kB / 414.4 MB, free: 21.03 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 6.982e-05/0.2196, allocations: 133.8 kB / 414.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.2197, allocations: 89.47 kB / 414.6 MB, free: 20.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.977e-05/0.2198, allocations: 20.7 kB / 414.6 MB, free: 20.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.2198, allocations: 0 / 414.6 MB, free: 20.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.2198, allocations: 0 / 414.6 MB, free: 20.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.2198, allocations: 4 kB / 414.6 MB, free: 20.76 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002045/0.22, allocations: 209.4 kB / 414.8 MB, free: 20.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.22, allocations: 0 / 414.8 MB, free: 20.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.2202, allocations: 48.16 kB / 414.9 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2202, allocations: 0 / 414.9 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.2202, allocations: 3.984 kB / 414.9 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.2202, allocations: 8 kB / 414.9 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2202, allocations: 0 / 414.9 MB, free: 20.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004251/0.2207, allocations: 399.3 kB / 415.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.591e-05/0.2207, allocations: 85.05 kB / 415.4 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.2207, allocations: 11.98 kB / 415.4 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.2209, allocations: 8.062 kB / 415.4 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.746e-05/0.2209, allocations: 7.984 kB / 415.4 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.2209, allocations: 4 kB / 415.4 MB, free: 19.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.725e-05/0.221, allocations: 102.6 kB / 415.5 MB, free: 19.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.221, allocations: 0 / 415.5 MB, free: 19.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002832/0.2213, allocations: 31.84 kB / 415.5 MB, free: 19.78 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.0005568/0.2218, allocations: 0.9327 MB / 416.5 MB, free: 18.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000276/0.2221, allocations: 128.7 kB / 416.6 MB, free: 18.69 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2221, allocations: 8 kB / 416.6 MB, free: 18.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.934e-05/0.2222, allocations: 31.97 kB / 416.6 MB, free: 18.65 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.2226, allocations: 52.14 kB / 416.7 MB, free: 18.6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.2239, allocations: 1.05 MB / 417.7 MB, free: 17.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001447/0.2241, allocations: 0.72 MB / 418.4 MB, free: 16.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.097e-05/0.2241, allocations: 35.48 kB / 418.5 MB, free: 16.66 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2241, allocations: 0 / 418.5 MB, free: 16.66 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.509/2.733, allocations: 1.887 MB / 420.4 MB, free: 14.78 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.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