Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.001058/0.001058, allocations: 175.6 kB / 16.77 MB, free: 4.922 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.268/1.268, allocations: 205.4 MB / 222.9 MB, free: 8.941 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.0006804/0.0006804, allocations: 96.89 kB / 271.3 MB, free: 8.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06378/0.06378, allocations: 12.2 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004008/0.0004009, allocations: 20 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07468/0.0751, allocations: 50.29 MB / 442.5 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.001912/0.07706, allocations: 1.657 MB / 444.1 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008136/0.0779, allocations: 0.535 MB / 444.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.07805, allocations: 4 kB / 444.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.07817, allocations: 11.86 kB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.07832, allocations: 19.84 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.07859, allocations: 47.89 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.07875, allocations: 119.6 kB / 444.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.07891, allocations: 49.03 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.253e-05/0.079, allocations: 35.86 kB / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.214e-05/0.07908, allocations: 47.77 kB / 445 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.07911, allocations: 4 kB / 445 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.799e-05/0.07913, allocations: 4 kB / 445 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.399e-05/0.07916, allocations: 23.86 kB / 445 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.988e-05/0.07922, allocations: 77.44 kB / 445.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001022/0.07933, allocations: 84.03 kB / 445.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.07934, allocations: 0 / 445.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.07935, allocations: 0 / 445.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.07936, allocations: 0 / 445.2 MB, free: 13.83 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.0004994/0.07987, allocations: 415.1 kB / 445.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.07992, allocations: 12.03 kB / 445.6 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.045e-05/0.07996, allocations: 50.73 kB / 445.7 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.345e-05/0.08, allocations: 20.69 kB / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.08017, allocations: 204.1 kB / 445.9 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.08019, allocations: 12.38 kB / 445.9 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.08023, allocations: 12.38 kB / 445.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004487/0.08068, allocations: 258.7 kB / 446.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.08071, allocations: 7.906 kB / 446.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.08073, allocations: 0 / 446.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.08074, allocations: 4 kB / 446.2 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000234/0.08098, allocations: 103.9 kB / 446.3 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004968/0.08149, allocations: 0.5843 MB / 446.9 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/0.0818, allocations: 155.9 kB / 447 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.08195, allocations: 74.64 kB / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.08199, allocations: 7.984 kB / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.54e-05/0.08201, allocations: 38.56 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.924e-06/0.08202, allocations: 0 / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004575/0.08248, allocations: 197.5 kB / 447.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.08254, allocations: 118.9 kB / 447.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.058e-05/0.08261, allocations: 131.2 kB / 447.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.08264, allocations: 29.7 kB / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.418e-05/0.08269, allocations: 111.8 kB / 447.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.08271, allocations: 27.69 kB / 447.7 MB, free: 11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.662e-06/0.08273, allocations: 8 kB / 447.7 MB, free: 11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.347e-05/0.08278, allocations: 318.8 kB / 448.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.08289, allocations: 43.97 kB / 448.1 MB, free: 10.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.08303, allocations: 141.7 kB / 448.2 MB, free: 10.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.08327, allocations: 205.4 kB / 448.4 MB, free: 10.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.08328, allocations: 4 kB / 448.4 MB, free: 10.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003175/0.08361, allocations: 205.6 kB / 448.6 MB, free: 9.984 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.08363, allocations: 5.312 kB / 448.6 MB, free: 9.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.08364, allocations: 4 kB / 448.6 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.08367, allocations: 4 kB / 448.7 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.0838, allocations: 51.91 kB / 448.7 MB, free: 9.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.976e-06/0.08382, allocations: 11.88 kB / 448.7 MB, free: 9.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.335e-05/0.08392, allocations: 27.83 kB / 448.7 MB, free: 9.883 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.08394, allocations: 8 kB / 448.7 MB, free: 9.875 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.072e-05/0.08401, allocations: 146.4 kB / 448.9 MB, free: 9.723 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.08413, allocations: 81.59 kB / 449 MB, free: 9.637 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.704e-05/0.08422, allocations: 20.7 kB / 449 MB, free: 9.617 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.08422, allocations: 3.938 kB / 449 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.08423, allocations: 4 kB / 449 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.08424, allocations: 0 / 449 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.08443, allocations: 205.5 kB / 449.2 MB, free: 9.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.08445, allocations: 0 / 449.2 MB, free: 9.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.08461, allocations: 47.91 kB / 449.2 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.08462, allocations: 0 / 449.2 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.08464, allocations: 8 kB / 449.3 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.08465, allocations: 0 / 449.3 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.08465, allocations: 0 / 449.3 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004207/0.08508, allocations: 391.9 kB / 449.6 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.509e-05/0.08511, allocations: 100.9 kB / 449.7 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.025e-05/0.08514, allocations: 8 kB / 449.7 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.08527, allocations: 12.06 kB / 449.8 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.347e-05/0.08531, allocations: 7.984 kB / 449.8 MB, free: 8.758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/0.08532, allocations: 4 kB / 449.8 MB, free: 8.754 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.772e-05/0.08537, allocations: 103.3 kB / 449.9 MB, free: 8.652 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.08537, allocations: 0 / 449.9 MB, free: 8.652 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000285/0.08566, allocations: 24 kB / 449.9 MB, free: 8.629 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.0005445/0.08621, allocations: 0.927 MB / 450.8 MB, free: 7.668 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002711/0.08649, allocations: 132.7 kB / 450.9 MB, free: 7.539 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.08651, allocations: 0 / 450.9 MB, free: 7.539 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.841e-05/0.0866, allocations: 35.92 kB / 451 MB, free: 7.504 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004366/0.08704, allocations: 52.42 kB / 451 MB, free: 7.453 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.08828, allocations: 1.056 MB / 452.1 MB, free: 6.293 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/0.08841, allocations: 0.7162 MB / 452.8 MB, free: 5.551 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.873e-05/0.08848, allocations: 35.42 kB / 452.8 MB, free: 5.516 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.08849, allocations: 0 / 452.8 MB, free: 5.516 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.36/2.448, allocations: 1.891 MB / 454.7 MB, free: 3.625 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.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