Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001298/0.001298, 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.00133/0.00133, 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.476/1.476, allocations: 225.6 MB / 249.1 MB, free: 3.609 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 51.91 kB / 365.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1099, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004273/0.1142, allocations: 2.036 MB / 419.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.1156, allocations: 0.5648 MB / 420.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.1158, allocations: 4 kB / 420.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.1159, allocations: 23.73 kB / 420.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002324/0.1162, allocations: 43.66 kB / 420.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000371/0.1165, allocations: 63.86 kB / 420.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002752/0.1168, allocations: 139.4 kB / 420.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.117, allocations: 37.88 kB / 420.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.1171, allocations: 47.84 kB / 420.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001183/0.1172, allocations: 63.69 kB / 420.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.654e-05/0.1173, allocations: 12 kB / 420.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.159e-05/0.1173, allocations: 8 kB / 420.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.397e-05/0.1174, allocations: 31.86 kB / 420.8 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.584e-05/0.1175, allocations: 67.61 kB / 420.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002789/0.1177, allocations: 151.2 kB / 421 MB, free: 9.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1177, allocations: 0 / 421 MB, free: 9.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1177, allocations: 0 / 421 MB, free: 9.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.1178, allocations: 3.984 kB / 421 MB, free: 9.336 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007751/0.1185, allocations: 462.7 kB / 421.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.1186, allocations: 12.03 kB / 421.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.665e-05/0.1186, allocations: 50.67 kB / 421.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.872e-05/0.1187, allocations: 20.84 kB / 421.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004564/0.1191, allocations: 220.1 kB / 421.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.1192, allocations: 12.38 kB / 421.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.818e-05/0.1192, allocations: 12.38 kB / 421.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006118/0.1198, allocations: 265.4 kB / 422.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.1198, allocations: 7.938 kB / 422.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.1198, allocations: 4 kB / 422.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.1199, allocations: 4 kB / 422.1 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002666/0.1201, allocations: 87.88 kB / 422.2 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007815/0.1209, allocations: 0.5922 MB / 422.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003876/0.1213, allocations: 143.8 kB / 422.9 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.1215, allocations: 74.62 kB / 423 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.1215, allocations: 3.984 kB / 423 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.1215, allocations: 46.5 kB / 423 MB, free: 7.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.1215, allocations: 0 / 423 MB, free: 7.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005648/0.1221, allocations: 181.7 kB / 423.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.1222, allocations: 114.8 kB / 423.3 MB, free: 6.789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.1224, allocations: 166.8 kB / 423.5 MB, free: 6.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.1224, allocations: 29.7 kB / 423.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.585e-05/0.1225, allocations: 112.7 kB / 423.6 MB, free: 6.469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.892e-05/0.1225, allocations: 23.8 kB / 423.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.653e-05/0.1226, allocations: 45.66 kB / 423.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.1228, allocations: 318.8 kB / 424 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.1229, allocations: 35.97 kB / 424 MB, free: 6.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/0.1231, allocations: 145.6 kB / 424.2 MB, free: 5.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003194/0.1234, allocations: 181.5 kB / 424.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.1234, allocations: 3.938 kB / 424.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003796/0.1238, allocations: 189.3 kB / 424.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1238, allocations: 11.94 kB / 424.6 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.1239, allocations: 8.406 kB / 424.6 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.1239, allocations: 8.234 kB / 424.6 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.1241, allocations: 47.97 kB / 424.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.1241, allocations: 7.938 kB / 424.6 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.1242, allocations: 19.88 kB / 424.6 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.1242, allocations: 12 kB / 424.7 MB, free: 5.312 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.0001352/0.1243, allocations: 133.7 kB / 424.8 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001773/0.1245, allocations: 101.5 kB / 424.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.539e-05/0.1246, allocations: 16.72 kB / 424.9 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.1246, allocations: 4 kB / 424.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1246, allocations: 0 / 424.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.1246, allocations: 11.98 kB / 424.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003173/0.1249, allocations: 217.4 kB / 425.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1249, allocations: 0 / 425.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.1251, allocations: 35.97 kB / 425.2 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.1251, allocations: 0 / 425.2 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.1251, allocations: 8 kB / 425.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1252, allocations: 0 / 425.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1252, allocations: 0 / 425.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006053/0.1258, allocations: 387.3 kB / 425.6 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.1259, allocations: 105.1 kB / 425.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.1259, allocations: 7.938 kB / 425.7 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.126, allocations: 16.05 kB / 425.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.1261, allocations: 4 kB / 425.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.1261, allocations: 4 kB / 425.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001072/0.1262, allocations: 115.2 kB / 425.8 MB, free: 4.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1262, allocations: 0 / 425.8 MB, free: 4.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003558/0.1266, allocations: 27.94 kB / 425.8 MB, free: 4.035 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.0009633/0.1275, allocations: 0.9257 MB / 426.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003627/0.1279, allocations: 128.2 kB / 426.9 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1279, allocations: 0 / 426.9 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.696e-05/0.128, allocations: 27.92 kB / 426.9 MB, free: 2.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005678/0.1286, allocations: 59.92 kB / 427 MB, free: 2.871 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002897/0.1314, allocations: 2.114 MB / 429.1 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004687/0.1319, allocations: 0.72 MB / 429.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.771e-05/0.132, allocations: 13.36 kB / 429.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.884e-05/0.1321, allocations: 43.42 kB / 429.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of SimCode: time 1.323e-06/0.1321, allocations: 0 / 429.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04054/0.1726, allocations: 3.012 MB / 432.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.651/8.824, allocations: 7.516 kB / 432.9 MB, free: 12.95 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.500897692050785]