Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.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.Continuous,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous",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.0008551/0.0008578, allocations: 175 kB / 16.77 MB, free: 4.918 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.199/1.199, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007848/0.0007848, allocations: 90.97 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.07447/0.07447, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004236/0.0004236, allocations: 20 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07266/0.0731, allocations: 50.28 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.001725/0.07486, allocations: 1.544 MB / 444 MB, free: 15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005441/0.07542, allocations: 472.1 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.561e-05/0.0755, allocations: 0 / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.224e-05/0.07558, allocations: 19.81 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.409e-05/0.07564, allocations: 19.83 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001033/0.07574, allocations: 19.98 kB / 444.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000113/0.07586, allocations: 95.58 kB / 444.6 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.07599, allocations: 37.39 kB / 444.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.072e-05/0.07604, allocations: 35.78 kB / 444.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.877e-05/0.0761, allocations: 31.86 kB / 444.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.07612, allocations: 4 kB / 444.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.524e-05/0.07614, allocations: 4 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.07616, allocations: 15.92 kB / 444.8 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.895e-05/0.07621, allocations: 65.5 kB / 444.8 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.48e-05/0.07631, allocations: 76.06 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.07632, allocations: 4 kB / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.07633, allocations: 0 / 444.9 MB, free: 14.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.987e-06/0.07634, allocations: 0 / 444.9 MB, free: 14.11 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.0003887/0.07673, allocations: 391.3 kB / 445.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.07677, allocations: 8.031 kB / 445.3 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.149e-05/0.07681, allocations: 46.73 kB / 445.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.366e-05/0.07684, allocations: 12.84 kB / 445.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.07697, allocations: 192.2 kB / 445.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.07699, allocations: 4.562 kB / 445.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.07702, allocations: 16.12 kB / 445.6 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.07725, allocations: 119.3 kB / 445.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.07727, allocations: 4 kB / 445.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.848e-06/0.07728, allocations: 0 / 445.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.0773, allocations: 11.98 kB / 445.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.0775, allocations: 75.95 kB / 445.8 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.07799, allocations: 0.5362 MB / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.07817, allocations: 90.53 kB / 446.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.07828, allocations: 44.83 kB / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.328e-06/0.0783, allocations: 0 / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.189e-05/0.07832, allocations: 30.56 kB / 446.5 MB, free: 12.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.07832, allocations: 4 kB / 446.5 MB, free: 12.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003436/0.07867, allocations: 141.7 kB / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.183e-05/0.0787, allocations: 55.41 kB / 446.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.548e-05/0.07877, allocations: 121.8 kB / 446.8 MB, free: 12.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.728e-06/0.07879, allocations: 29.7 kB / 446.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.22e-05/0.07884, allocations: 127.8 kB / 446.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.527e-05/0.07886, allocations: 23.56 kB / 447 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/0.07887, allocations: 4 kB / 447 MB, free: 11.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.165e-05/0.07892, allocations: 322.8 kB / 447.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.85e-05/0.07902, allocations: 47.91 kB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.99e-05/0.07913, allocations: 68.27 kB / 447.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.07933, allocations: 116.1 kB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.07934, allocations: 0 / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002454/0.07959, allocations: 149.4 kB / 447.7 MB, free: 11.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.378e-06/0.07961, allocations: 4 kB / 447.7 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.07962, allocations: 0 / 447.7 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.07963, allocations: 4 kB / 447.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.07978, allocations: 31.97 kB / 447.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.07979, allocations: 4.125 kB / 447.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.956e-05/0.07987, allocations: 19.94 kB / 447.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.07988, allocations: 4 kB / 447.7 MB, free: 11.02 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 5.81e-05/0.07994, allocations: 129.5 kB / 447.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.07997, allocations: 7.906 kB / 447.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.665e-05/0.08, allocations: 16.38 kB / 447.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.08001, allocations: 0 / 447.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.08002, allocations: 0 / 447.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.08002, allocations: 4 kB / 447.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001454/0.08017, allocations: 201.5 kB / 448.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.08018, allocations: 4 kB / 448.1 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.08033, allocations: 23.98 kB / 448.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.08034, allocations: 0 / 448.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.08035, allocations: 0 / 448.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.08036, allocations: 0 / 448.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.08036, allocations: 0 / 448.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003346/0.0807, allocations: 263.6 kB / 448.4 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.398e-05/0.08073, allocations: 92.98 kB / 448.5 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.613e-05/0.08076, allocations: 8 kB / 448.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.65e-05/0.08085, allocations: 4 kB / 448.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.45e-05/0.08089, allocations: 7.984 kB / 448.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.0809, allocations: 4 kB / 448.5 MB, free: 10.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.787e-05/0.08094, allocations: 96.81 kB / 448.6 MB, free: 10.08 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08095, allocations: 3.938 kB / 448.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002208/0.08117, allocations: 20 kB / 448.6 MB, free: 10.05 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.0004632/0.08164, allocations: 0.7787 MB / 449.4 MB, free: 9.246 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002243/0.08188, allocations: 87.88 kB / 449.5 MB, free: 9.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.08189, allocations: 4 kB / 449.5 MB, free: 9.156 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.248e-05/0.08198, allocations: 44.22 kB / 449.5 MB, free: 9.113 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.0823, allocations: 23.86 kB / 449.5 MB, free: 9.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.08347, allocations: 0.9124 MB / 450.4 MB, free: 8.109 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001069/0.08359, allocations: 0.7004 MB / 451.1 MB, free: 7.383 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.028e-05/0.08364, allocations: 23.44 kB / 451.2 MB, free: 7.359 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.08365, allocations: 4 kB / 451.2 MB, free: 7.355 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.393/2.477, allocations: 1.61 MB / 452.8 MB, free: 5.742 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.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,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