Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001466/0.001466, allocations: 114.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001745/0.001745, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 67.75 kB / 306.5 MB, free: 0.8711 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.12, allocations: 50.53 MB / 357.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.004159/0.1242, allocations: 1.937 MB / 359 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.1252, allocations: 486.8 kB / 359.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.1253, allocations: 3.938 kB / 359.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.468e-05/0.1255, allocations: 15.86 kB / 359.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001/0.1256, allocations: 11.86 kB / 359.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001748/0.1258, allocations: 31.97 kB / 359.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002103/0.126, allocations: 99.58 kB / 359.7 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.1262, allocations: 45.38 kB / 359.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.854e-05/0.1263, allocations: 35.92 kB / 359.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.783e-05/0.1263, allocations: 39.78 kB / 359.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.233e-05/0.1264, allocations: 12 kB / 359.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.385e-05/0.1264, allocations: 8 kB / 359.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.215e-05/0.1264, allocations: 19.91 kB / 359.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.286e-05/0.1265, allocations: 59.67 kB / 359.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.1267, allocations: 99.89 kB / 360 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1267, allocations: 0 / 360 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1267, allocations: 4 kB / 360 MB, free: 11.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.1267, allocations: 0 / 360 MB, free: 11.42 MB / 302.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.0006279/0.1274, allocations: 403.3 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.1274, allocations: 12.03 kB / 360.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.664e-05/0.1275, allocations: 38.73 kB / 360.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.949e-05/0.1275, allocations: 16.75 kB / 360.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.1278, allocations: 192.2 kB / 360.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.1278, allocations: 4.562 kB / 360.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.1279, allocations: 24.11 kB / 360.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002934/0.1282, allocations: 120 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.1282, allocations: 0 / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.1282, allocations: 4 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.1282, allocations: 4 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000236/0.1285, allocations: 71.88 kB / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007982/0.1293, allocations: 0.5207 MB / 361.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/0.1295, allocations: 82.59 kB / 361.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.1296, allocations: 36.84 kB / 361.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.1297, allocations: 4 kB / 361.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.952e-05/0.1297, allocations: 34.5 kB / 361.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.1297, allocations: 0 / 361.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004117/0.1301, allocations: 125.7 kB / 361.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.1302, allocations: 55.41 kB / 361.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.1303, allocations: 132.3 kB / 361.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.1304, allocations: 25.7 kB / 361.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.497e-05/0.1304, allocations: 115.8 kB / 362 MB, free: 9.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.436e-05/0.1305, allocations: 23.64 kB / 362 MB, free: 9.176 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.219e-05/0.1306, allocations: 25.72 kB / 362 MB, free: 9.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1307, allocations: 330.8 kB / 362.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.1308, allocations: 31.97 kB / 362.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.131, allocations: 68.2 kB / 362.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.1312, allocations: 100.2 kB / 362.5 MB, free: 8.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1312, allocations: 0 / 362.5 MB, free: 8.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003186/0.1316, allocations: 137.4 kB / 362.7 MB, free: 8.445 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1316, allocations: 8.125 kB / 362.7 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.1316, allocations: 0 / 362.7 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/0.1316, allocations: 4.094 kB / 362.7 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.1318, allocations: 35.91 kB / 362.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.1318, allocations: 3.938 kB / 362.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.506e-05/0.1319, allocations: 23.84 kB / 362.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.1319, allocations: 4 kB / 362.7 MB, free: 8.367 MB / 302.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.0001175/0.1321, allocations: 126.8 kB / 362.9 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.358e-05/0.1321, allocations: 11.91 kB / 362.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.819e-05/0.1322, allocations: 12.38 kB / 362.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1322, allocations: 4 kB / 362.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1322, allocations: 0 / 362.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1322, allocations: 0 / 362.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.1324, allocations: 197.6 kB / 363.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1324, allocations: 0 / 363.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001365/0.1325, allocations: 23.92 kB / 363.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1326, allocations: 0 / 363.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.1326, allocations: 0 / 363.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1326, allocations: 8 kB / 363.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1326, allocations: 0 / 363.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003978/0.133, allocations: 231.3 kB / 363.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-05/0.1331, allocations: 85.05 kB / 363.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.1331, allocations: 8.094 kB / 363.4 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.1332, allocations: 8 kB / 363.4 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.129e-05/0.1332, allocations: 7.969 kB / 363.4 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.1333, allocations: 7.938 kB / 363.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.538e-05/0.1333, allocations: 99.27 kB / 363.5 MB, free: 7.461 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1333, allocations: 0 / 363.5 MB, free: 7.461 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002462/0.1336, allocations: 23.84 kB / 363.6 MB, free: 7.438 MB / 302.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.0006531/0.1342, allocations: 0.767 MB / 364.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002941/0.1345, allocations: 83.88 kB / 364.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1346, allocations: 0 / 364.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.1347, allocations: 40.62 kB / 364.5 MB, free: 6.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003931/0.1351, allocations: 30.91 kB / 364.5 MB, free: 6.492 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002127/0.1372, allocations: 1.755 MB / 366.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.1376, allocations: 0.704 MB / 366.9 MB, free: 3.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.381e-05/0.1376, allocations: 8.438 kB / 367 MB, free: 3.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.918e-05/0.1377, allocations: 35.36 kB / 367 MB, free: 3.863 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1377, allocations: 0 / 367 MB, free: 3.863 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03231/0.17, allocations: 2.19 MB / 369.2 MB, free: 1.809 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003884/0.1705, allocations: 217.4 kB / 369.4 MB, free: 1.547 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.865/2.036, allocations: 3.375 kB / 369.4 MB, free: 1.547 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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