Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.0009495/0.0009494, allocations: 175.6 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.286/1.286, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007522/0.0007522, allocations: 94.34 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06431/0.06431, allocations: 12.2 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003695/0.0003696, allocations: 12 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07024/0.07062, allocations: 50.29 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.001807/0.07246, allocations: 1.684 MB / 444.2 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008237/0.07331, allocations: 0.5895 MB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.07346, allocations: 7.938 kB / 444.8 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.07359, allocations: 7.922 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001968/0.0738, allocations: 27.78 kB / 444.8 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000303/0.07411, allocations: 67.86 kB / 444.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.07427, allocations: 119.6 kB / 445 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.07442, allocations: 53.52 kB / 445 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.98e-05/0.07452, allocations: 43.78 kB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.022e-05/0.07461, allocations: 55.7 kB / 445.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.427e-05/0.07464, allocations: 4 kB / 445.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.845e-05/0.07466, allocations: 4 kB / 445.1 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.518e-05/0.07472, allocations: 19.92 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.127e-05/0.07478, allocations: 81.38 kB / 445.2 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.0749, allocations: 107.9 kB / 445.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.07491, allocations: 0 / 445.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.07492, allocations: 0 / 445.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.07493, allocations: 0 / 445.4 MB, free: 13.67 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.000515/0.07545, allocations: 438.9 kB / 445.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.07549, allocations: 11.97 kB / 445.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.998e-05/0.07554, allocations: 50.73 kB / 445.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.622e-05/0.07558, allocations: 20.66 kB / 445.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.07575, allocations: 216 kB / 446.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.07577, allocations: 8.375 kB / 446.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.044e-05/0.07581, allocations: 12.38 kB / 446.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000455/0.07627, allocations: 269.5 kB / 446.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.0763, allocations: 4 kB / 446.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.07632, allocations: 4 kB / 446.4 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.07633, allocations: 4 kB / 446.4 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002332/0.07657, allocations: 99.88 kB / 446.5 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004757/0.07705, allocations: 0.5998 MB / 447.1 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002945/0.07736, allocations: 159.8 kB / 447.2 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.0775, allocations: 78.64 kB / 447.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.07754, allocations: 7.984 kB / 447.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.256e-05/0.07756, allocations: 30.56 kB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.07756, allocations: 4 kB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004594/0.07803, allocations: 197.3 kB / 447.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.07808, allocations: 118.9 kB / 447.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.72e-05/0.07819, allocations: 171.1 kB / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.598e-06/0.0782, allocations: 25.7 kB / 447.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.909e-05/0.07825, allocations: 112.2 kB / 447.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.07827, allocations: 27.7 kB / 448 MB, free: 10.76 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.07828, allocations: 384 / 448 MB, free: 10.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.157e-05/0.07833, allocations: 322.8 kB / 448.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.07844, allocations: 39.97 kB / 448.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.0786, allocations: 157.6 kB / 448.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002344/0.07884, allocations: 197.4 kB / 448.7 MB, free: 9.949 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.07885, allocations: 4 kB / 448.7 MB, free: 9.945 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003187/0.07918, allocations: 209.6 kB / 448.9 MB, free: 9.734 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.0792, allocations: 7.938 kB / 448.9 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.07921, allocations: 4 kB / 448.9 MB, free: 9.723 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.07923, allocations: 4 kB / 448.9 MB, free: 9.719 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.07937, allocations: 59.91 kB / 449 MB, free: 9.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.07939, allocations: 7.938 kB / 449 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.47e-05/0.07949, allocations: 19.84 kB / 449 MB, free: 9.633 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.07951, allocations: 12 kB / 449 MB, free: 9.621 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.639e-05/0.07959, allocations: 141.5 kB / 449.1 MB, free: 9.473 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.07971, allocations: 93.44 kB / 449.2 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.596e-05/0.0798, allocations: 20.7 kB / 449.2 MB, free: 9.355 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.07981, allocations: 4 kB / 449.3 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.07982, allocations: 0 / 449.3 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.07983, allocations: 0 / 449.3 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.08003, allocations: 213.5 kB / 449.5 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.08004, allocations: 0 / 449.5 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.08021, allocations: 51.91 kB / 449.5 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.08022, allocations: 0 / 449.5 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.08024, allocations: 4 kB / 449.5 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.08024, allocations: 0 / 449.5 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.08025, allocations: 0 / 449.5 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004277/0.08068, allocations: 407.2 kB / 449.9 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.196e-05/0.08074, allocations: 104.8 kB / 450 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/0.08077, allocations: 4 kB / 450 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.08091, allocations: 16.05 kB / 450 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.368e-05/0.08095, allocations: 7.984 kB / 450 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.303e-06/0.08096, allocations: 4 kB / 450 MB, free: 8.469 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.73e-05/0.08102, allocations: 115.2 kB / 450.2 MB, free: 8.355 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08103, allocations: 0 / 450.2 MB, free: 8.355 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002845/0.08132, allocations: 24 kB / 450.2 MB, free: 8.332 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.0005789/0.0819, allocations: 0.9396 MB / 451.1 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002825/0.0822, allocations: 132.7 kB / 451.3 MB, free: 7.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.08221, allocations: 0 / 451.3 MB, free: 7.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.936e-05/0.0823, allocations: 31.97 kB / 451.3 MB, free: 7.199 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.08278, allocations: 59.81 kB / 451.3 MB, free: 7.141 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.08409, allocations: 1.116 MB / 452.5 MB, free: 5.914 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.08424, allocations: 0.7279 MB / 453.2 MB, free: 5.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.946e-05/0.08432, allocations: 39.42 kB / 453.2 MB, free: 5.121 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.08432, allocations: 0 / 453.2 MB, free: 5.121 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.324/2.408, allocations: 1.985 MB / 455.2 MB, free: 3.141 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,speed.w 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