Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",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.0008796/0.0008795, allocations: 175.5 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.258/1.258, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0006695/0.0006695, allocations: 86.36 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06207/0.06207, allocations: 12.2 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003777/0.0003777, allocations: 19.94 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06717/0.06756, allocations: 50.29 MB / 442.5 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.001732/0.06934, allocations: 1.712 MB / 444.2 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000664/0.07003, allocations: 0.5077 MB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.07015, allocations: 4 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.821e-05/0.07024, allocations: 11.92 kB / 444.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.789e-05/0.07031, allocations: 23.78 kB / 444.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002327/0.07054, allocations: 39.95 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.0707, allocations: 123.5 kB / 444.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.07083, allocations: 53.45 kB / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.446e-05/0.0709, allocations: 35.8 kB / 445 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.882e-05/0.07096, allocations: 39.78 kB / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.07099, allocations: 4 kB / 445 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.756e-05/0.07101, allocations: 8 kB / 445 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.889e-05/0.07103, allocations: 23.91 kB / 445.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.388e-05/0.07109, allocations: 73.44 kB / 445.1 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.425e-05/0.07119, allocations: 84.05 kB / 445.2 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.0712, allocations: 3.938 kB / 445.2 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.07121, allocations: 3.938 kB / 445.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.07122, allocations: 4 kB / 445.2 MB, free: 13.79 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004514/0.07167, allocations: 415.1 kB / 445.6 MB, free: 13.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.07172, allocations: 12.03 kB / 445.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.549e-05/0.07176, allocations: 38.75 kB / 445.7 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.0718, allocations: 20.73 kB / 445.7 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.07199, allocations: 204 kB / 445.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.877e-06/0.07201, allocations: 12.38 kB / 445.9 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.006e-05/0.07205, allocations: 12.38 kB / 445.9 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004076/0.07246, allocations: 246.5 kB / 446.2 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.07249, allocations: 4 kB / 446.2 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.07251, allocations: 4 kB / 446.2 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.07252, allocations: 0 / 446.2 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002255/0.07275, allocations: 99.88 kB / 446.3 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004886/0.07325, allocations: 0.6037 MB / 446.9 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000278/0.07354, allocations: 151.9 kB / 447 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.07368, allocations: 78.64 kB / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.07371, allocations: 4 kB / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.32e-05/0.07373, allocations: 34.56 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.07374, allocations: 0 / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004434/0.07418, allocations: 197.3 kB / 447.3 MB, free: 11.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.07425, allocations: 118.9 kB / 447.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.138e-05/0.07433, allocations: 138.1 kB / 447.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.07434, allocations: 29.7 kB / 447.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.866e-05/0.07439, allocations: 119.9 kB / 447.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.07441, allocations: 24.11 kB / 447.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-06/0.07442, allocations: 4 kB / 447.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.928e-05/0.07447, allocations: 322.8 kB / 448.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.07458, allocations: 43.97 kB / 448.1 MB, free: 10.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.07471, allocations: 149.6 kB / 448.3 MB, free: 10.4 MB / 298.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003516/0.07507, allocations: 294.6 kB / 448.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.07508, allocations: 0 / 448.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000314/0.0754, allocations: 209.3 kB / 448.8 MB, free: 9.836 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.07542, allocations: 8 kB / 448.8 MB, free: 9.828 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.07543, allocations: 4 kB / 448.8 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.07545, allocations: 7.938 kB / 448.8 MB, free: 9.816 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.07559, allocations: 47.91 kB / 448.8 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.0756, allocations: 7.938 kB / 448.8 MB, free: 9.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.836e-05/0.07571, allocations: 28.02 kB / 448.9 MB, free: 9.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.07573, allocations: 12 kB / 448.9 MB, free: 9.723 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = PI.y_start. 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.962e-05/0.07581, allocations: 143.4 kB / 449 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/0.07595, allocations: 85.59 kB / 449.1 MB, free: 9.484 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.601e-05/0.07599, allocations: 20.7 kB / 449.1 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.076, allocations: 0 / 449.1 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.07601, allocations: 4 kB / 449.1 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.07602, allocations: 3.938 kB / 449.1 MB, free: 9.457 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001894/0.07621, allocations: 213.4 kB / 449.3 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.07622, allocations: 4 kB / 449.3 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001966/0.07642, allocations: 51.95 kB / 449.4 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.07643, allocations: 4 kB / 449.4 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.07645, allocations: 0 / 449.4 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.07645, allocations: 0 / 449.4 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.07646, allocations: 4 kB / 449.4 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00042/0.07688, allocations: 396.9 kB / 449.8 MB, free: 8.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.313e-05/0.07692, allocations: 92.89 kB / 449.9 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.07694, allocations: 12.05 kB / 449.9 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.07707, allocations: 11.98 kB / 449.9 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.07712, allocations: 8 kB / 449.9 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.555e-06/0.07713, allocations: 4 kB / 449.9 MB, free: 8.586 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.72e-05/0.07717, allocations: 103.2 kB / 450 MB, free: 8.484 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.07718, allocations: 0 / 450 MB, free: 8.484 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002761/0.07746, allocations: 28 kB / 450 MB, free: 8.457 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.0005332/0.078, allocations: 0.9311 MB / 451 MB, free: 7.492 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002724/0.07828, allocations: 136.7 kB / 451.1 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.07829, allocations: 0 / 451.1 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.966e-05/0.07838, allocations: 39.91 kB / 451.1 MB, free: 7.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.07882, allocations: 56 kB / 451.2 MB, free: 7.266 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.08014, allocations: 1.1 MB / 452.3 MB, free: 6.059 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001071/0.08026, allocations: 0.7126 MB / 453 MB, free: 5.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.603e-05/0.08032, allocations: 39.42 kB / 453 MB, free: 5.281 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.08033, allocations: 0 / 453 MB, free: 5.281 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.379/2.459, allocations: 1.995 MB / 455 MB, free: 3.289 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.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,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