Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 116.2 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 218.9 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.518/1.518, allocations: 230.6 MB / 254.8 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 51.92 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1114, allocations: 53.32 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003561/0.115, allocations: 1.891 MB / 428.9 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009394/0.1159, allocations: 0.4909 MB / 429.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.918e-05/0.116, allocations: 3.938 kB / 429.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.1161, allocations: 15.86 kB / 429.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.64e-05/0.1162, allocations: 23.77 kB / 429.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001496/0.1164, allocations: 31.97 kB / 429.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001858/0.1165, allocations: 103.6 kB / 429.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.1167, allocations: 29.39 kB / 429.6 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.421e-05/0.1168, allocations: 47.78 kB / 429.6 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.956e-05/0.1168, allocations: 47.78 kB / 429.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.132e-05/0.1169, allocations: 8 kB / 429.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.895e-05/0.1169, allocations: 8 kB / 429.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.798e-05/0.1169, allocations: 19.92 kB / 429.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.54e-05/0.117, allocations: 47.73 kB / 429.8 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.1171, allocations: 99.55 kB / 429.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1172, allocations: 0 / 429.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1172, allocations: 0 / 429.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.1172, allocations: 0 / 429.8 MB, free: 1.914 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.0006369/0.1178, allocations: 415.2 kB / 430.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1178, allocations: 8.031 kB / 430.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.948e-05/0.1179, allocations: 4.375 kB / 430.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.219e-05/0.1179, allocations: 42.67 kB / 430.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.602e-05/0.1179, allocations: 12.89 kB / 430.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000254/0.1182, allocations: 196.2 kB / 430.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.1182, allocations: 8.312 kB / 430.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.163e-05/0.1182, allocations: 12 kB / 430.5 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003062/0.1185, allocations: 123.2 kB / 430.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1186, allocations: 0 / 430.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.1186, allocations: 8 kB / 430.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1186, allocations: 0 / 430.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002521/0.1188, allocations: 67.94 kB / 430.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000844/0.1197, allocations: 0.5247 MB / 431.3 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002143/0.1199, allocations: 78.53 kB / 431.3 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.12, allocations: 40.83 kB / 431.4 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.12, allocations: 4.156 kB / 431.4 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/0.1201, allocations: 34.56 kB / 431.4 MB, free: 168 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.1201, allocations: 0 / 431.4 MB, free: 168 kB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004281/0.1205, allocations: 125.7 kB / 431.5 MB, free: 36 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.555e-05/0.1206, allocations: 51.41 kB / 431.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.1207, allocations: 133.8 kB / 431.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.1207, allocations: 33.64 kB / 431.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.107e-05/0.1208, allocations: 108 kB / 431.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.088e-05/0.1208, allocations: 35.67 kB / 431.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.824e-05/0.1209, allocations: 25.72 kB / 431.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.121, allocations: 322.8 kB / 432.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.1212, allocations: 35.97 kB / 432.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.1213, allocations: 67.77 kB / 432.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002445/0.1215, allocations: 100.2 kB / 432.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1215, allocations: 4 kB / 432.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003173/0.1219, allocations: 141.4 kB / 432.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1219, allocations: 4 kB / 432.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.1219, allocations: 4 kB / 432.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.1219, allocations: 0 / 432.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.1221, allocations: 31.97 kB / 432.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.1221, allocations: 8.125 kB / 432.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.622e-05/0.1221, allocations: 15.94 kB / 432.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.1222, allocations: 4 kB / 432.6 MB, free: 14.85 MB / 366.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.0001146/0.1223, allocations: 125.7 kB / 432.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.1223, allocations: 7.953 kB / 432.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.797e-05/0.1223, allocations: 12.38 kB / 432.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.1223, allocations: 0 / 432.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.1224, allocations: 0 / 432.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.1224, allocations: 4 kB / 432.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002606/0.1226, allocations: 201.5 kB / 433 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1226, allocations: 0 / 433 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001406/0.1228, allocations: 23.98 kB / 433 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.1228, allocations: 4.094 kB / 433 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.1228, allocations: 3.938 kB / 433 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1228, allocations: 0 / 433 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1228, allocations: 0 / 433 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004594/0.1232, allocations: 243.2 kB / 433.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.79e-05/0.1233, allocations: 85.06 kB / 433.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.1233, allocations: 0 / 433.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.872e-05/0.1234, allocations: 16.03 kB / 433.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.063e-05/0.1235, allocations: 4 kB / 433.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.1235, allocations: 0 / 433.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.694e-05/0.1235, allocations: 100.2 kB / 433.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1235, allocations: 4 kB / 433.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002496/0.1238, allocations: 27.81 kB / 433.5 MB, free: 13.91 MB / 366.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.0007636/0.1246, allocations: 0.7689 MB / 434.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002903/0.1249, allocations: 80 kB / 434.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1249, allocations: 0 / 434.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.125, allocations: 35.97 kB / 434.4 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.1253, allocations: 15.98 kB / 434.4 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.1275, allocations: 1.731 MB / 436.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003849/0.1279, allocations: 0.7002 MB / 436.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.097e-05/0.128, allocations: 8.438 kB / 436.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.635e-05/0.128, allocations: 31.61 kB / 436.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.128, allocations: 0 / 436.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02032/0.1484, allocations: 2.434 MB / 439.3 MB, free: 8.082 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.38/8.528, allocations: 11.91 kB / 439.3 MB, free: 8.07 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.426524798036553]