Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001071/0.001071, allocations: 170.8 kB / 16.77 MB, free: 4.902 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.255/1.255, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007747/0.0007746, allocations: 74.44 kB / 271.3 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06424/0.06424, allocations: 12.21 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004084/0.0004085, allocations: 12 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07295/0.07338, allocations: 50.29 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.001591/0.07501, allocations: 1.657 MB / 444.1 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005702/0.07559, allocations: 0.5077 MB / 444.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.668e-05/0.07568, allocations: 7.938 kB / 444.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.954e-05/0.07577, allocations: 11.92 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.597e-05/0.07582, allocations: 15.8 kB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.07607, allocations: 47.94 kB / 444.7 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.07619, allocations: 115.6 kB / 444.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.07631, allocations: 48.89 kB / 444.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.463e-05/0.07637, allocations: 35.84 kB / 444.9 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.804e-05/0.07643, allocations: 47.77 kB / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.07646, allocations: 7.938 kB / 445 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.569e-05/0.07648, allocations: 4 kB / 445 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.762e-05/0.0765, allocations: 11.94 kB / 445 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.465e-05/0.07656, allocations: 73.44 kB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.461e-05/0.07665, allocations: 84.03 kB / 445.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.07666, allocations: 4 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.07667, allocations: 0 / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.07668, allocations: 0 / 445.2 MB, free: 13.86 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004116/0.07709, allocations: 411.1 kB / 445.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.07713, allocations: 12.03 kB / 445.6 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.338e-05/0.07717, allocations: 50.67 kB / 445.6 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.809e-05/0.07721, allocations: 24.73 kB / 445.6 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.07735, allocations: 204.1 kB / 445.8 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.07737, allocations: 8.375 kB / 445.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.369e-05/0.0774, allocations: 12.38 kB / 445.9 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003925/0.0778, allocations: 246.7 kB / 446.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.07782, allocations: 3.984 kB / 446.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.07784, allocations: 4 kB / 446.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.07785, allocations: 4 kB / 446.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002151/0.07807, allocations: 95.88 kB / 446.2 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004289/0.07851, allocations: 0.592 MB / 446.8 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002108/0.07873, allocations: 163.9 kB / 447 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000129/0.07887, allocations: 74.64 kB / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.0789, allocations: 4 kB / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.377e-05/0.07892, allocations: 38.5 kB / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.472e-06/0.07892, allocations: 0 / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004241/0.07935, allocations: 189.4 kB / 447.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.0794, allocations: 118.9 kB / 447.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.841e-05/0.07946, allocations: 130.2 kB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.798e-06/0.07948, allocations: 29.7 kB / 447.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.6e-05/0.07953, allocations: 111.8 kB / 447.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.07955, allocations: 23.7 kB / 447.7 MB, free: 11.06 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-06/0.07956, allocations: 0 / 447.7 MB, free: 11.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.072e-05/0.07961, allocations: 326.8 kB / 448 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.942e-05/0.07971, allocations: 39.97 kB / 448 MB, free: 10.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.07984, allocations: 141.6 kB / 448.2 MB, free: 10.51 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.08007, allocations: 193 kB / 448.4 MB, free: 10.28 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.08008, allocations: 4 kB / 448.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002883/0.08038, allocations: 193.2 kB / 448.5 MB, free: 10.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.0804, allocations: 4.438 kB / 448.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.08041, allocations: 15.88 kB / 448.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.08043, allocations: 4.234 kB / 448.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.08058, allocations: 47.91 kB / 448.6 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.08059, allocations: 4 kB / 448.6 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.864e-05/0.08069, allocations: 27.83 kB / 448.6 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.0807, allocations: 8 kB / 448.7 MB, free: 9.969 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.573e-05/0.08077, allocations: 138.4 kB / 448.8 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.08088, allocations: 89.52 kB / 448.9 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.04e-05/0.08092, allocations: 16.66 kB / 448.9 MB, free: 9.715 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.08093, allocations: 4 kB / 448.9 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.08094, allocations: 3.938 kB / 448.9 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.08095, allocations: 3.984 kB / 448.9 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.08113, allocations: 197.5 kB / 449.1 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.08114, allocations: 4 kB / 449.1 MB, free: 9.457 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.0813, allocations: 35.97 kB / 449.1 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.08131, allocations: 4 kB / 449.1 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.08132, allocations: 11.94 kB / 449.2 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.08133, allocations: 0 / 449.2 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.08134, allocations: 3.938 kB / 449.2 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003915/0.08173, allocations: 383.5 kB / 449.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.223e-05/0.08176, allocations: 88.98 kB / 449.6 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.08179, allocations: 11.94 kB / 449.6 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.08191, allocations: 11.98 kB / 449.6 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/0.08195, allocations: 8.062 kB / 449.7 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.08197, allocations: 4 kB / 449.7 MB, free: 8.867 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.417e-05/0.082, allocations: 103.8 kB / 449.8 MB, free: 8.766 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.08201, allocations: 0 / 449.8 MB, free: 8.766 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002696/0.08228, allocations: 27.91 kB / 449.8 MB, free: 8.738 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 (14): * Single equations (assignments): 14 * 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.0005099/0.0828, allocations: 0.9162 MB / 450.7 MB, free: 7.789 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002494/0.08306, allocations: 124.7 kB / 450.8 MB, free: 7.668 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.08307, allocations: 7.938 kB / 450.8 MB, free: 7.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.749e-05/0.08316, allocations: 39.97 kB / 450.9 MB, free: 7.621 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.0836, allocations: 48.02 kB / 450.9 MB, free: 7.574 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.08476, allocations: 1.039 MB / 452 MB, free: 6.434 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001125/0.08488, allocations: 0.7084 MB / 452.7 MB, free: 5.699 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.394e-05/0.08494, allocations: 39.48 kB / 452.7 MB, free: 5.66 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.08495, allocations: 4 kB / 452.7 MB, free: 5.656 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.363/2.448, allocations: 1.87 MB / 454.6 MB, free: 3.789 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,speed.w Variables in the result:PI.Td,PI.kd,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