Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.Continuous,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009698/0.0009698, allocations: 197.8 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.5 MB / 244.7 MB, free: 6.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007936/0.0007937, allocations: 91.8 kB / 296.7 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002422/0.0002422, allocations: 8 kB / 356.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2251, allocations: 51.29 MB / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.001497/0.2266, allocations: 1.555 MB / 409.7 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005373/0.2272, allocations: 457.3 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.456e-05/0.2273, allocations: 4 kB / 410.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.087e-05/0.2274, allocations: 9.703 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.922e-05/0.2274, allocations: 23.78 kB / 410.2 MB, free: 25.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000117/0.2275, allocations: 19.97 kB / 410.2 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.2277, allocations: 92.19 kB / 410.3 MB, free: 25.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.2278, allocations: 35.97 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.132e-05/0.2278, allocations: 31.86 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.582e-05/0.2279, allocations: 39.78 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.628e-05/0.2279, allocations: 5.25 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.574e-05/0.2279, allocations: 4 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.565e-05/0.228, allocations: 15.91 kB / 410.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.072e-05/0.228, allocations: 69.5 kB / 410.5 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.769e-05/0.2281, allocations: 72.28 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2281, allocations: 0 / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2281, allocations: 0 / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.397e-06/0.2281, allocations: 0 / 410.5 MB, free: 25.22 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0004006/0.2285, allocations: 397.1 kB / 410.9 MB, free: 24.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.2286, allocations: 8.031 kB / 410.9 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.975e-05/0.2286, allocations: 42.73 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.042e-05/0.2286, allocations: 16.75 kB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.2288, allocations: 199.4 kB / 411.2 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.278e-06/0.2288, allocations: 8.562 kB / 411.2 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.605e-05/0.2288, allocations: 12.12 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002476/0.2291, allocations: 126.3 kB / 411.3 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.2291, allocations: 0 / 411.3 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.2291, allocations: 4 kB / 411.3 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2291, allocations: 4 kB / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/0.2294, allocations: 79.94 kB / 411.4 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004874/0.2298, allocations: 0.5285 MB / 412 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.23, allocations: 90.53 kB / 412 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.2302, allocations: 40.84 kB / 412.1 MB, free: 23.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.47e-05/0.2302, allocations: 7.938 kB / 412.1 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.38e-05/0.2302, allocations: 34.55 kB / 412.1 MB, free: 23.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.2302, allocations: 0 / 412.1 MB, free: 23.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.000356/0.2306, allocations: 137.5 kB / 412.3 MB, free: 23.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.2306, allocations: 55.34 kB / 412.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.69e-05/0.2307, allocations: 129.8 kB / 412.4 MB, free: 23.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.069e-05/0.2307, allocations: 29.7 kB / 412.5 MB, free: 23.08 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.479e-05/0.2308, allocations: 111.8 kB / 412.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.2308, allocations: 35.69 kB / 412.6 MB, free: 22.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.05e-06/0.2308, allocations: 0 / 412.6 MB, free: 22.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.664e-05/0.2309, allocations: 326.8 kB / 412.9 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.231, allocations: 31.98 kB / 413 MB, free: 22.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.2311, allocations: 72.27 kB / 413 MB, free: 22.49 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.2313, allocations: 116.2 kB / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.2313, allocations: 0 / 413.1 MB, free: 22.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002597/0.2316, allocations: 149.4 kB / 413.3 MB, free: 22.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.2316, allocations: 4 kB / 413.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.2316, allocations: 4 kB / 413.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.2316, allocations: 3.984 kB / 413.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.2318, allocations: 36.05 kB / 413.3 MB, free: 22.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.2318, allocations: 4 kB / 413.3 MB, free: 22.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.03e-05/0.2319, allocations: 15.98 kB / 413.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.2319, allocations: 4 kB / 413.4 MB, free: 22.14 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.357e-05/0.2319, allocations: 129.7 kB / 413.5 MB, free: 22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.548e-05/0.232, allocations: 7.906 kB / 413.5 MB, free: 21.99 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.195e-05/0.232, allocations: 16.36 kB / 413.5 MB, free: 21.97 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.232, allocations: 0 / 413.5 MB, free: 21.97 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.232, allocations: 4 kB / 413.5 MB, free: 21.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.232, allocations: 0 / 413.5 MB, free: 21.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.2322, allocations: 201.5 kB / 413.7 MB, free: 21.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.2322, allocations: 0 / 413.7 MB, free: 21.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.2323, allocations: 23.98 kB / 413.7 MB, free: 21.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2323, allocations: 0 / 413.7 MB, free: 21.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.619e-06/0.2323, allocations: 0 / 413.7 MB, free: 21.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2324, allocations: 4 kB / 413.7 MB, free: 21.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2324, allocations: 0 / 413.7 MB, free: 21.69 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003446/0.2327, allocations: 259.1 kB / 414 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.261e-05/0.2327, allocations: 85.11 kB / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.2328, allocations: 4 kB / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.62e-05/0.2329, allocations: 12.03 kB / 414.1 MB, free: 21.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.053e-05/0.2329, allocations: 3.984 kB / 414.1 MB, free: 21.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.2329, allocations: 4 kB / 414.1 MB, free: 21.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.533e-05/0.233, allocations: 102.2 kB / 414.2 MB, free: 21.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.233, allocations: 0 / 414.2 MB, free: 21.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002159/0.2332, allocations: 19.91 kB / 414.2 MB, free: 21.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0004576/0.2336, allocations: 0.7864 MB / 415 MB, free: 20.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002433/0.2339, allocations: 91.92 kB / 415.1 MB, free: 20.28 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2339, allocations: 256 / 415.1 MB, free: 20.28 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.417e-05/0.234, allocations: 36.27 kB / 415.1 MB, free: 20.24 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.2343, allocations: 22.33 kB / 415.2 MB, free: 20.22 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.2355, allocations: 0.9148 MB / 416.1 MB, free: 19.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.2356, allocations: 0.6965 MB / 416.8 MB, free: 18.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.306e-05/0.2357, allocations: 27.42 kB / 416.8 MB, free: 18.5 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2357, allocations: 0 / 416.8 MB, free: 18.5 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.545/2.781, allocations: 1.612 MB / 418.4 MB, free: 16.88 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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,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,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,speed.flange.phi,speed.flange.tau,speed.w,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.tau,torque.useSupport