Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001905/0.001905, allocations: 124.5 kB / 17.79 MB, free: 5.246 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.002651/0.002651, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.498/1.498, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1101, allocations: 53.33 MB / 426.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004722/0.1148, allocations: 2.029 MB / 428.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.1162, allocations: 0.5609 MB / 428.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002288/0.1165, allocations: 11.94 kB / 428.9 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001895/0.1167, allocations: 19.8 kB / 428.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002732/0.1169, allocations: 27.78 kB / 428.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003843/0.1173, allocations: 51.88 kB / 429 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003593/0.1177, allocations: 123.6 kB / 429.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002354/0.1179, allocations: 45.36 kB / 429.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.1181, allocations: 47.84 kB / 429.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.1183, allocations: 55.72 kB / 429.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.63e-05/0.1183, allocations: 8 kB / 429.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.784e-05/0.1184, allocations: 12 kB / 429.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.358e-05/0.1184, allocations: 31.91 kB / 429.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.1186, allocations: 63.66 kB / 429.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003944/0.1189, allocations: 131.3 kB / 429.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.939e-06/0.119, allocations: 0 / 429.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.119, allocations: 0 / 429.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.745e-05/0.119, allocations: 0 / 429.5 MB, free: 1.57 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.001036/0.12, allocations: 434.9 kB / 429.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/0.1201, allocations: 12.03 kB / 429.9 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.989e-05/0.1201, allocations: 46.75 kB / 430 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.414e-05/0.1202, allocations: 20.78 kB / 430 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/0.1207, allocations: 212.1 kB / 430.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.1207, allocations: 8.375 kB / 430.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.1207, allocations: 12.38 kB / 430.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006376/0.1214, allocations: 254 kB / 430.5 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.1214, allocations: 0 / 430.5 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/0.1214, allocations: 8 kB / 430.5 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.1215, allocations: 4 kB / 430.5 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003159/0.1218, allocations: 87.88 kB / 430.6 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009103/0.1227, allocations: 0.5961 MB / 431.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004283/0.1231, allocations: 135.9 kB / 431.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001942/0.1233, allocations: 74.62 kB / 431.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.1233, allocations: 3.906 kB / 431.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.172e-05/0.1234, allocations: 46.56 kB / 431.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.744e-06/0.1234, allocations: 0 / 431.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.000619/0.124, allocations: 181.4 kB / 431.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1241, allocations: 118.9 kB / 431.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.1243, allocations: 132.6 kB / 431.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.1243, allocations: 29.7 kB / 431.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.349e-05/0.1244, allocations: 116 kB / 432 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.889e-05/0.1244, allocations: 19.86 kB / 432 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.081e-05/0.1245, allocations: 38.08 kB / 432.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1246, allocations: 322.8 kB / 432.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.1248, allocations: 35.97 kB / 432.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.125, allocations: 137.6 kB / 432.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003772/0.1253, allocations: 197.4 kB / 432.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.1254, allocations: 3.938 kB / 432.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004333/0.1258, allocations: 193.5 kB / 432.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.1258, allocations: 8 kB / 432.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.1258, allocations: 8.453 kB / 432.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.1258, allocations: 8 kB / 432.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.126, allocations: 43.91 kB / 433 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.126, allocations: 8 kB / 433 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.1262, allocations: 23.88 kB / 433 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.1262, allocations: 11.94 kB / 433 MB, free: 13.64 MB / 366.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.000156/0.1263, allocations: 133.7 kB / 433.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.1265, allocations: 85.58 kB / 433.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.1266, allocations: 20.7 kB / 433.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1266, allocations: 8 kB / 433.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.1266, allocations: 0 / 433.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1266, allocations: 0 / 433.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003246/0.1269, allocations: 205.5 kB / 433.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1269, allocations: 4 kB / 433.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001902/0.1271, allocations: 35.91 kB / 433.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.1271, allocations: 4 kB / 433.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.1272, allocations: 4 kB / 433.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.818e-06/0.1272, allocations: 4 kB / 433.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1272, allocations: 0 / 433.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006292/0.1278, allocations: 381.8 kB / 433.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.76e-05/0.1279, allocations: 96.94 kB / 434 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.1279, allocations: 4 kB / 434 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.128, allocations: 12.06 kB / 434 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.9e-05/0.1281, allocations: 7.984 kB / 434 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.1281, allocations: 4 kB / 434 MB, free: 12.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.832e-05/0.1282, allocations: 101 kB / 434.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1282, allocations: 0 / 434.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003348/0.1285, allocations: 24 kB / 434.1 MB, free: 12.42 MB / 366.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.0009174/0.1294, allocations: 0.9257 MB / 435.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003667/0.1298, allocations: 120.2 kB / 435.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1298, allocations: 0 / 435.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.1299, allocations: 27.92 kB / 435.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005141/0.1304, allocations: 54.25 kB / 435.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.1331, allocations: 2.064 MB / 437.3 MB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.1334, allocations: 0.7123 MB / 438 MB, free: 8.289 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.191e-05/0.1335, allocations: 9.078 kB / 438 MB, free: 8.281 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.799e-05/0.1336, allocations: 39.42 kB / 438.1 MB, free: 8.242 MB / 366.1 MB Notification: Performance of SimCode: time 1.332e-06/0.1336, allocations: 0 / 438.1 MB, free: 8.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02828/0.1618, allocations: 2.801 MB / 440.9 MB, free: 5.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.388/8.55, allocations: 7.797 kB / 440.9 MB, free: 5.582 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.265156825073063]