Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 115.7 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 190.7 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 225.6 MB / 249.8 MB, free: 3.742 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 51.92 kB / 366.3 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1191, allocations: 52.14 MB / 418.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003929/0.123, allocations: 1.876 MB / 420.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009636/0.124, allocations: 462.8 kB / 420.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.1241, allocations: 8 kB / 420.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.1243, allocations: 15.8 kB / 420.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.364e-05/0.1244, allocations: 27.78 kB / 420.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001649/0.1245, allocations: 23.97 kB / 420.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001945/0.1247, allocations: 103.6 kB / 421 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.1249, allocations: 33.38 kB / 421 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.019e-05/0.1249, allocations: 35.86 kB / 421 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.187e-05/0.125, allocations: 43.78 kB / 421.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.1251, allocations: 11.94 kB / 421.1 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2e-05/0.1251, allocations: 12 kB / 421.1 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.36e-05/0.1251, allocations: 23.92 kB / 421.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.226e-05/0.1252, allocations: 43.78 kB / 421.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001919/0.1254, allocations: 103.5 kB / 421.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1254, allocations: 4 kB / 421.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1254, allocations: 0 / 421.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.1254, allocations: 0 / 421.3 MB, free: 9.816 MB / 350.1 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.0006818/0.1261, allocations: 403.2 kB / 421.7 MB, free: 9.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.1261, allocations: 16.03 kB / 421.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.953e-05/0.1261, allocations: 4.312 kB / 421.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.48e-05/0.1262, allocations: 46.73 kB / 421.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.901e-05/0.1262, allocations: 12.84 kB / 421.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002861/0.1265, allocations: 196.2 kB / 421.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.1265, allocations: 12.31 kB / 421.9 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.179e-05/0.1265, allocations: 8 kB / 422 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003201/0.1269, allocations: 115.4 kB / 422.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.1269, allocations: 7.938 kB / 422.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.1269, allocations: 0 / 422.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.076e-06/0.1269, allocations: 4 kB / 422.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002517/0.1272, allocations: 71.94 kB / 422.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008406/0.128, allocations: 0.5286 MB / 422.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000218/0.1282, allocations: 78.53 kB / 422.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.1283, allocations: 32.84 kB / 422.8 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.1284, allocations: 4 kB / 422.8 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/0.1284, allocations: 42.55 kB / 422.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.1284, allocations: 0 / 422.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004389/0.1288, allocations: 117.8 kB / 422.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.602e-05/0.1289, allocations: 55.34 kB / 423 MB, free: 7.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.129, allocations: 132.3 kB / 423.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.129, allocations: 25.7 kB / 423.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.483e-05/0.1291, allocations: 119.9 kB / 423.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.675e-05/0.1291, allocations: 31.88 kB / 423.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.779e-05/0.1292, allocations: 25.72 kB / 423.3 MB, free: 7.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.1294, allocations: 326.8 kB / 423.6 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.1295, allocations: 31.97 kB / 423.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.1297, allocations: 79.52 kB / 423.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.1299, allocations: 96.2 kB / 423.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1299, allocations: 0 / 423.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000342/0.1303, allocations: 137.5 kB / 424 MB, free: 6.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.1303, allocations: 4 kB / 424 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1303, allocations: 0 / 424 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.1303, allocations: 7.938 kB / 424 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.1305, allocations: 39.91 kB / 424 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.1305, allocations: 0 / 424 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.351e-05/0.1306, allocations: 16.08 kB / 424.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.1306, allocations: 7.984 kB / 424.1 MB, free: 6.75 MB / 350.1 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 0.0001415/0.1307, allocations: 126.4 kB / 424.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.1308, allocations: 11.89 kB / 424.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.763e-05/0.1308, allocations: 8.375 kB / 424.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.1308, allocations: 7.984 kB / 424.2 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1308, allocations: 0 / 424.2 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.1308, allocations: 0 / 424.2 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002463/0.1311, allocations: 197.6 kB / 424.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1311, allocations: 4.094 kB / 424.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/0.1312, allocations: 23.92 kB / 424.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1312, allocations: 0 / 424.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.1312, allocations: 0 / 424.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.1312, allocations: 4 kB / 424.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1312, allocations: 0 / 424.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004856/0.1317, allocations: 247.3 kB / 424.7 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-05/0.1318, allocations: 81.06 kB / 424.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.1318, allocations: 4 kB / 424.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.861e-05/0.1319, allocations: 4 kB / 424.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.433e-05/0.1319, allocations: 3.984 kB / 424.8 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.1319, allocations: 4 kB / 424.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001448/0.1321, allocations: 95.27 kB / 424.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1321, allocations: 4 kB / 424.9 MB, free: 5.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002545/0.1323, allocations: 35.83 kB / 424.9 MB, free: 5.809 MB / 350.1 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.0008899/0.1332, allocations: 0.7554 MB / 425.7 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003222/0.1335, allocations: 83.83 kB / 425.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1335, allocations: 0 / 425.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.1337, allocations: 35.97 kB / 425.8 MB, free: 4.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.134, allocations: 22.52 kB / 425.8 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.1365, allocations: 1.744 MB / 427.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.1369, allocations: 0.7039 MB / 428.2 MB, free: 2.309 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.574e-05/0.137, allocations: 12.42 kB / 428.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.504e-05/0.137, allocations: 31.61 kB / 428.3 MB, free: 2.266 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.137, allocations: 0 / 428.3 MB, free: 2.266 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02053/0.1576, allocations: 2.436 MB / 430.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.224/8.382, allocations: 14.78 kB / 430.7 MB, free: 15.95 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y 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 [Calling sys.exit(0), Time elapsed: 11.047175636980683]