Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001324/0.001324, allocations: 125 kB / 17.79 MB, free: 5.121 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.001375/0.001375, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.461/1.461, allocations: 225.6 MB / 249.1 MB, free: 3.625 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 47.92 kB / 365.6 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1224, allocations: 52.14 MB / 417.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004814/0.1272, allocations: 2.024 MB / 419.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.1287, allocations: 0.5258 MB / 420.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.1289, allocations: 4 kB / 420.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.129, allocations: 19.73 kB / 420.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.1292, allocations: 35.72 kB / 420.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.1296, allocations: 63.75 kB / 420.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.1299, allocations: 123.5 kB / 420.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.1301, allocations: 37.44 kB / 420.6 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.1302, allocations: 47.84 kB / 420.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.1303, allocations: 63.69 kB / 420.7 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.908e-05/0.1303, allocations: 8 kB / 420.7 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.369e-05/0.1304, allocations: 12 kB / 420.7 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.423e-05/0.1304, allocations: 23.92 kB / 420.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.886e-05/0.1305, allocations: 55.67 kB / 420.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000263/0.1308, allocations: 135.4 kB / 420.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1308, allocations: 4 kB / 420.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1308, allocations: 0 / 420.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.1308, allocations: 0 / 420.9 MB, free: 9.523 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008937/0.1317, allocations: 434.8 kB / 421.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.1317, allocations: 12.03 kB / 421.4 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.088e-05/0.1318, allocations: 46.73 kB / 421.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.213e-05/0.1318, allocations: 12.84 kB / 421.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.1322, allocations: 208.2 kB / 421.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.1322, allocations: 8.375 kB / 421.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.1323, allocations: 12.38 kB / 421.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006629/0.1329, allocations: 263.2 kB / 421.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.1329, allocations: 3.938 kB / 421.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.133, allocations: 8 kB / 421.9 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.133, allocations: 4 kB / 421.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000359/0.1333, allocations: 83.88 kB / 422 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009351/0.1343, allocations: 0.596 MB / 422.6 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005282/0.1348, allocations: 143.8 kB / 422.7 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.135, allocations: 74.64 kB / 422.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.135, allocations: 0 / 422.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/0.1351, allocations: 46.48 kB / 422.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.1351, allocations: 0 / 422.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.00077/0.1359, allocations: 185.4 kB / 423 MB, free: 7.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.136, allocations: 114.9 kB / 423.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.1361, allocations: 132.4 kB / 423.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.1362, allocations: 29.7 kB / 423.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.231e-05/0.1362, allocations: 111.9 kB / 423.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.203e-05/0.1363, allocations: 23.84 kB / 423.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.356e-05/0.1363, allocations: 37.84 kB / 423.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002164/0.1366, allocations: 322.8 kB / 423.8 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.1367, allocations: 35.97 kB / 423.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002507/0.137, allocations: 137.6 kB / 424 MB, free: 6.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00041/0.1374, allocations: 189.5 kB / 424.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.1374, allocations: 3.938 kB / 424.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004957/0.1379, allocations: 197.2 kB / 424.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.1379, allocations: 8 kB / 424.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1379, allocations: 0 / 424.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.1379, allocations: 8 kB / 424.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002332/0.1382, allocations: 39.92 kB / 424.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.959e-05/0.1382, allocations: 16.39 kB / 424.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/0.1383, allocations: 19.95 kB / 424.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.1383, allocations: 8 kB / 424.4 MB, free: 5.602 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001394/0.1385, allocations: 133.7 kB / 424.6 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.1387, allocations: 89.95 kB / 424.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.938e-05/0.1388, allocations: 16.72 kB / 424.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1388, allocations: 4.328 kB / 424.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.1388, allocations: 11.88 kB / 424.7 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1388, allocations: 3.984 kB / 424.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000403/0.1392, allocations: 217.5 kB / 424.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1392, allocations: 0 / 424.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.1394, allocations: 35.97 kB / 424.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.1394, allocations: 4 kB / 424.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.1395, allocations: 4 kB / 424.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.1395, allocations: 4 kB / 424.9 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1395, allocations: 0 / 424.9 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007473/0.1402, allocations: 383.3 kB / 425.3 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.457e-05/0.1403, allocations: 89.03 kB / 425.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.089e-05/0.1403, allocations: 8 kB / 425.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/0.1405, allocations: 7.984 kB / 425.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.312e-05/0.1406, allocations: 8 kB / 425.4 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.1406, allocations: 8.062 kB / 425.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001292/0.1407, allocations: 103.2 kB / 425.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1407, allocations: 0 / 425.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004773/0.1412, allocations: 27.95 kB / 425.6 MB, free: 4.355 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.001031/0.1422, allocations: 0.9158 MB / 426.5 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004907/0.1427, allocations: 120.5 kB / 426.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1427, allocations: 4.188 kB / 426.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.1428, allocations: 27.92 kB / 426.6 MB, free: 3.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007152/0.1436, allocations: 48 kB / 426.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003317/0.1469, allocations: 2.066 MB / 428.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.1473, allocations: 0.7162 MB / 429.5 MB, free: 240 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.23e-05/0.1473, allocations: 9.078 kB / 429.5 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.038e-05/0.1474, allocations: 39.36 kB / 429.5 MB, free: 192 kB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1474, allocations: 0 / 429.5 MB, free: 192 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03238/0.1798, allocations: 2.817 MB / 432.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.485/8.665, allocations: 8.797 kB / 432.3 MB, free: 13.51 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.119895631913096]