Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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-master/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-master/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_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_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.0009014/0.0009011, allocations: 174.1 kB / 16.11 MB, free: 5.691 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.207/1.207, allocations: 205 MB / 221.9 MB, free: 9.141 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.0007312/0.0007312, allocations: 100.2 kB / 269.9 MB, free: 8.66 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08136/0.08136, allocations: 12.58 MB / 330.4 MB, free: 12.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003347/0.0003347, allocations: 8 kB / 391.2 MB, free: 66.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07523/0.07558, allocations: 49.98 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.001548/0.07717, allocations: 1.59 MB / 442.7 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005224/0.07771, allocations: 491.7 kB / 443.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.625e-05/0.0778, allocations: 4 kB / 443.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.851e-05/0.0779, allocations: 3.938 kB / 443.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.905e-05/0.07796, allocations: 19.84 kB / 443.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001107/0.07808, allocations: 27.92 kB / 443.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.07819, allocations: 103.6 kB / 443.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.0783, allocations: 41.58 kB / 443.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.137e-05/0.07836, allocations: 35.86 kB / 443.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.232e-05/0.07843, allocations: 39.78 kB / 443.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.07846, allocations: 4 kB / 443.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.638e-05/0.07848, allocations: 4 kB / 443.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.753e-05/0.07851, allocations: 7.938 kB / 443.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.106e-05/0.07855, allocations: 47.72 kB / 443.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.812e-05/0.07866, allocations: 83.67 kB / 443.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.07867, allocations: 0 / 443.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.07868, allocations: 4 kB / 443.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.07869, allocations: 0 / 443.6 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.000425/0.07912, allocations: 407.3 kB / 444 MB, free: 13.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.07916, allocations: 11.97 kB / 444 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.348e-05/0.0792, allocations: 42.73 kB / 444.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.905e-05/0.07924, allocations: 8.844 kB / 444.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.07939, allocations: 188.2 kB / 444.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.0794, allocations: 12.55 kB / 444.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.764e-05/0.07944, allocations: 20.12 kB / 444.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002318/0.07968, allocations: 123.3 kB / 444.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.0797, allocations: 0 / 444.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.938e-06/0.07971, allocations: 0 / 444.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.07972, allocations: 4 kB / 444.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001994/0.07993, allocations: 83.94 kB / 444.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005267/0.08046, allocations: 0.5323 MB / 445 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001663/0.08064, allocations: 86.53 kB / 445.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.973e-05/0.08075, allocations: 48.83 kB / 445.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.304e-05/0.08077, allocations: 0 / 445.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.57e-05/0.0808, allocations: 42.55 kB / 445.2 MB, free: 12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.0808, allocations: 0 / 445.2 MB, free: 12 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003579/0.08117, allocations: 133.6 kB / 445.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.352e-05/0.0812, allocations: 51.41 kB / 445.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.345e-05/0.08127, allocations: 129.7 kB / 445.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.666e-06/0.08129, allocations: 29.7 kB / 445.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.715e-05/0.08133, allocations: 115.8 kB / 445.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.08135, allocations: 27.61 kB / 445.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.237e-05/0.08138, allocations: 21.72 kB / 445.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.001e-05/0.08142, allocations: 322.8 kB / 446 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.817e-05/0.08153, allocations: 39.97 kB / 446.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.778e-05/0.08163, allocations: 76.2 kB / 446.1 MB, free: 11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.08182, allocations: 108.4 kB / 446.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.08183, allocations: 3.938 kB / 446.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000235/0.08207, allocations: 153.4 kB / 446.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.08209, allocations: 8 kB / 446.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.0821, allocations: 0 / 446.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/0.08212, allocations: 0 / 446.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.08226, allocations: 35.97 kB / 446.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.08228, allocations: 4 kB / 446.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.859e-05/0.08235, allocations: 15.94 kB / 446.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.08236, allocations: 8.094 kB / 446.5 MB, free: 10.65 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.438e-05/0.08242, allocations: 125.7 kB / 446.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.08245, allocations: 7.906 kB / 446.6 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.558e-05/0.08248, allocations: 8.375 kB / 446.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.08249, allocations: 4 kB / 446.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.0825, allocations: 0 / 446.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.08251, allocations: 0 / 446.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.08266, allocations: 205.5 kB / 446.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.08267, allocations: 4 kB / 446.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.0828, allocations: 27.98 kB / 446.8 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.08281, allocations: 4 kB / 446.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.08283, allocations: 0 / 446.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.08283, allocations: 0 / 446.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.08284, allocations: 0 / 446.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003089/0.08315, allocations: 251.3 kB / 447.1 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.913e-05/0.08318, allocations: 88.98 kB / 447.2 MB, free: 9.848 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.0832, allocations: 4 kB / 447.2 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-05/0.08329, allocations: 8 kB / 447.2 MB, free: 9.836 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.209e-05/0.08333, allocations: 11.98 kB / 447.2 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-06/0.08334, allocations: 0 / 447.2 MB, free: 9.824 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.312e-05/0.08338, allocations: 99.77 kB / 447.3 MB, free: 9.727 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08338, allocations: 0 / 447.3 MB, free: 9.727 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002101/0.0836, allocations: 24 kB / 447.3 MB, free: 9.703 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004272/0.08403, allocations: 0.783 MB / 448.1 MB, free: 8.891 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002118/0.08425, allocations: 95.98 kB / 448.2 MB, free: 8.797 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.08426, allocations: 0 / 448.2 MB, free: 8.797 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.652e-05/0.08435, allocations: 43.91 kB / 448.2 MB, free: 8.754 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.08466, allocations: 24.23 kB / 448.3 MB, free: 8.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.08608, allocations: 1.791 MB / 450.1 MB, free: 6.832 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.39e-05/0.08619, allocations: 0.7004 MB / 450.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.753e-05/0.08623, allocations: 8.422 kB / 450.8 MB, free: 6.098 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.485e-05/0.08628, allocations: 27.42 kB / 450.8 MB, free: 6.07 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.08629, allocations: 0 / 450.8 MB, free: 6.07 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01652/0.1028, allocations: 2.075 MB / 452.9 MB, free: 3.992 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/0.103, allocations: 224.8 kB / 453.1 MB, free: 3.734 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/1.75, allocations: 4 kB / 453.1 MB, free: 3.73 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_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.tau,torque.useSupport