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.001241/0.001241, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001281/0.001281, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.485/1.485, allocations: 225.6 MB / 249.1 MB, free: 3.617 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 51.92 kB / 365.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1112, allocations: 52.15 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003568/0.1148, allocations: 1.87 MB / 419.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009313/0.1157, allocations: 466.8 kB / 420.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.351e-05/0.1158, allocations: 0 / 420.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.1159, allocations: 15.86 kB / 420.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.041e-05/0.116, allocations: 15.8 kB / 420.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001575/0.1161, allocations: 35.94 kB / 420.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001763/0.1163, allocations: 103.6 kB / 420.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.1165, allocations: 29.39 kB / 420.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.1166, allocations: 39.8 kB / 420.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.427e-05/0.1167, allocations: 51.77 kB / 420.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.1167, allocations: 8 kB / 420.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.936e-05/0.1167, allocations: 12 kB / 420.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.553e-05/0.1167, allocations: 15.92 kB / 420.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.19e-05/0.1168, allocations: 47.8 kB / 420.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001875/0.117, allocations: 99.55 kB / 420.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.117, allocations: 0 / 420.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.117, allocations: 0 / 420.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.117, allocations: 0 / 420.6 MB, free: 9.848 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.0006633/0.1177, allocations: 419.1 kB / 421 MB, free: 9.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1177, allocations: 8.031 kB / 421 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.417e-05/0.1178, allocations: 42.75 kB / 421 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.507e-05/0.1178, allocations: 16.78 kB / 421 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.1181, allocations: 200.2 kB / 421.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.1181, allocations: 0.5625 kB / 421.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.058e-05/0.1181, allocations: 16.12 kB / 421.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003008/0.1184, allocations: 127.3 kB / 421.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.1184, allocations: 0 / 421.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.1184, allocations: 4 kB / 421.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1185, allocations: 4 kB / 421.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002309/0.1187, allocations: 63.94 kB / 421.4 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007302/0.1194, allocations: 0.5247 MB / 422 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.1196, allocations: 78.55 kB / 422 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.1197, allocations: 36.83 kB / 422.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.1198, allocations: 0 / 422.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.1198, allocations: 42.56 kB / 422.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.1198, allocations: 3.938 kB / 422.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004502/0.1202, allocations: 125.8 kB / 422.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.1203, allocations: 51.41 kB / 422.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.1204, allocations: 131.4 kB / 422.4 MB, free: 7.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.079e-05/0.1205, allocations: 25.7 kB / 422.4 MB, free: 7.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.1206, allocations: 115.9 kB / 422.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.1206, allocations: 31.73 kB / 422.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-05/0.1207, allocations: 25.72 kB / 422.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.1209, allocations: 326.8 kB / 422.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.121, allocations: 27.98 kB / 423 MB, free: 7.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.1211, allocations: 72.27 kB / 423 MB, free: 7.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002295/0.1214, allocations: 96.19 kB / 423.1 MB, free: 7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1214, allocations: 4 kB / 423.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002973/0.1217, allocations: 141.4 kB / 423.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.1217, allocations: 8 kB / 423.3 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.1217, allocations: 0 / 423.3 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.1217, allocations: 0 / 423.3 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.1219, allocations: 31.98 kB / 423.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.1219, allocations: 7.922 kB / 423.3 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.068e-05/0.122, allocations: 16.08 kB / 423.3 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.122, allocations: 4 kB / 423.3 MB, free: 6.785 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.0001071/0.1221, allocations: 130.3 kB / 423.5 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.08e-05/0.1221, allocations: 7.953 kB / 423.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4e-05/0.1221, allocations: 12.36 kB / 423.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1221, allocations: 0 / 423.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1221, allocations: 0 / 423.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.1221, allocations: 96 / 423.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.1224, allocations: 205.5 kB / 423.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.1224, allocations: 4 kB / 423.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.1225, allocations: 27.98 kB / 423.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1225, allocations: 4 kB / 423.7 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.1225, allocations: 0 / 423.7 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1225, allocations: 0 / 423.7 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1225, allocations: 3.984 kB / 423.7 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004438/0.123, allocations: 239.6 kB / 424 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.464e-05/0.123, allocations: 85.06 kB / 424 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.1231, allocations: 4.031 kB / 424 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.029e-05/0.1232, allocations: 8 kB / 424 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.132e-05/0.1232, allocations: 7.984 kB / 424.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.1232, allocations: 0 / 424.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.048e-05/0.1233, allocations: 101.7 kB / 424.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1233, allocations: 0 / 424.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000274/0.1235, allocations: 27.89 kB / 424.2 MB, free: 5.84 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.0007949/0.1243, allocations: 0.7708 MB / 425 MB, free: 5.043 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002873/0.1246, allocations: 79.92 kB / 425 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1246, allocations: 0 / 425 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.1247, allocations: 31.98 kB / 425.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.1251, allocations: 18.05 kB / 425.1 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/0.1274, allocations: 1.735 MB / 426.8 MB, free: 3.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.1278, allocations: 0.7041 MB / 427.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.132e-05/0.1278, allocations: 12.42 kB / 427.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.301e-05/0.1279, allocations: 31.38 kB / 427.6 MB, free: 2.301 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1279, allocations: 0 / 427.6 MB, free: 2.301 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02937/0.1572, allocations: 2.4 MB / 430 MB, free: 16 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.481/8.638, allocations: 16.84 kB / 430 MB, free: 4 kB / 350.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] Reference file matches [Calling sys.exit(0), Time elapsed: 11.19304438168183]