Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.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.001682/0.001682, allocations: 109 kB / 20.48 MB, free: 1.492 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.002046/0.002046, allocations: 214.8 kB / 23.79 MB, free: 4.707 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 207.6 MB / 234.6 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2379/0.2379, allocations: 44.25 MB / 331.1 MB, free: 9.52 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002329/0.002329, allocations: 75.84 kB / 468.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1324, allocations: 61.03 MB / 0.5169 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003438/0.1358, allocations: 1.546 MB / 0.5184 GB, free: 5.801 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.1369, allocations: 0.5358 MB / 0.5189 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.746e-05/0.1369, allocations: 0 / 0.5189 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.884e-05/0.1369, allocations: 7.922 kB / 0.5189 GB, free: 5.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.8e-05/0.137, allocations: 15.88 kB / 0.519 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.1373, allocations: 31.89 kB / 0.519 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001567/0.1374, allocations: 95.7 kB / 0.5191 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.1375, allocations: 16.19 kB / 0.5191 GB, free: 5.094 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.1377, allocations: 43.84 kB / 0.5191 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.1378, allocations: 39.83 kB / 0.5192 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.651e-05/0.1378, allocations: 8 kB / 0.5192 GB, free: 5.004 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.948e-05/0.1378, allocations: 8 kB / 0.5192 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.084e-05/0.1379, allocations: 19.91 kB / 0.5192 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.19e-05/0.1379, allocations: 35.86 kB / 0.5192 GB, free: 4.941 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001703/0.1381, allocations: 79.59 kB / 0.5193 GB, free: 4.863 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1381, allocations: 4 kB / 0.5193 GB, free: 4.859 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1381, allocations: 0 / 0.5193 GB, free: 4.859 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1381, allocations: 0 / 0.5193 GB, free: 4.859 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007966/0.1389, allocations: 322.1 kB / 0.5196 GB, free: 4.516 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.112e-05/0.139, allocations: 11.97 kB / 0.5196 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.746e-05/0.139, allocations: 4.188 kB / 0.5196 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.171e-05/0.139, allocations: 42.73 kB / 0.5197 GB, free: 4.449 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.545e-05/0.1391, allocations: 12.89 kB / 0.5197 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.1393, allocations: 114.5 kB / 0.5198 GB, free: 4.301 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.1393, allocations: 4.375 kB / 0.5198 GB, free: 4.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.1393, allocations: 8.375 kB / 0.5198 GB, free: 4.289 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000247/0.1396, allocations: 89.52 kB / 0.5199 GB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.1396, allocations: 0 / 0.5199 GB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.1396, allocations: 7.984 kB / 0.5199 GB, free: 4.188 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.1396, allocations: 8 kB / 0.5199 GB, free: 4.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.1397, allocations: 35.98 kB / 0.52 GB, free: 4.145 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006985/0.1404, allocations: 303.7 kB / 0.5202 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002107/0.1407, allocations: 74.55 kB / 0.5203 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.1408, allocations: 52.72 kB / 0.5204 GB, free: 3.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.1408, allocations: 8.203 kB / 0.5204 GB, free: 3.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002464/0.141, allocations: 103.4 kB / 0.5205 GB, free: 3.547 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.141, allocations: 0 / 0.5205 GB, free: 3.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004664/0.1415, allocations: 174 kB / 0.5206 GB, free: 3.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.1416, allocations: 63.39 kB / 0.5207 GB, free: 3.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.1417, allocations: 129.7 kB / 0.5208 GB, free: 3.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.1417, allocations: 29.7 kB / 0.5208 GB, free: 3.125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.16e-05/0.1418, allocations: 96.36 kB / 0.5209 GB, free: 3.027 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.116e-05/0.1418, allocations: 31.73 kB / 0.521 GB, free: 2.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-05/0.1419, allocations: 37.7 kB / 0.521 GB, free: 2.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.142, allocations: 326.8 kB / 0.5213 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.899e-05/0.1421, allocations: 35.98 kB / 0.5214 GB, free: 2.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.1422, allocations: 77.12 kB / 0.5214 GB, free: 2.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002062/0.1425, allocations: 125.1 kB / 0.5215 GB, free: 2.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1425, allocations: 0 / 0.5215 GB, free: 2.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002923/0.1427, allocations: 157.4 kB / 0.5217 GB, free: 2.195 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.1428, allocations: 8 kB / 0.5217 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1428, allocations: 0 / 0.5217 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.1428, allocations: 7.938 kB / 0.5217 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.1429, allocations: 23.92 kB / 0.5217 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.1429, allocations: 160 / 0.5217 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.104e-05/0.143, allocations: 15.95 kB / 0.5217 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.143, allocations: 8 kB / 0.5218 GB, free: 2.133 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0001304/0.1431, allocations: 139.7 kB / 0.5219 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.834e-05/0.1431, allocations: 7.953 kB / 0.5219 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.084e-05/0.1432, allocations: 12.38 kB / 0.5219 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1432, allocations: 4 kB / 0.5219 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1432, allocations: 0 / 0.5219 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1432, allocations: 0 / 0.5219 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00059/0.1438, allocations: 425.5 kB / 0.5223 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1438, allocations: 0 / 0.5223 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.282e-05/0.1438, allocations: 7.984 kB / 0.5223 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1438, allocations: 0 / 0.5223 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.933e-05/0.1438, allocations: 12 kB / 0.5223 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1438, allocations: 0 / 0.5223 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1438, allocations: 0 / 0.5223 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003598/0.1442, allocations: 255.3 kB / 0.5226 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.623e-05/0.1442, allocations: 7.953 kB / 0.5226 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.566e-05/0.1442, allocations: 3.984 kB / 0.5226 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.1444, allocations: 12 kB / 0.5226 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.877e-05/0.1444, allocations: 11.98 kB / 0.5226 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.1444, allocations: 7.984 kB / 0.5226 GB, free: 1.168 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.903e-05/0.1445, allocations: 91.59 kB / 0.5227 GB, free: 1.078 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1445, allocations: 0 / 0.5227 GB, free: 1.078 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002615/0.1448, allocations: 31.92 kB / 0.5227 GB, free: 1.047 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0007263/0.1455, allocations: 0.7826 MB / 0.5235 GB, free: 244 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002667/0.1458, allocations: 103.9 kB / 0.5236 GB, free: 140 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.1458, allocations: 4.312 kB / 0.5236 GB, free: 136 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.1459, allocations: 43.92 kB / 0.5236 GB, free: 92 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.1462, allocations: 11.98 kB / 0.5237 GB, free: 80 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.1482, allocations: 1.642 MB / 0.5253 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.1485, allocations: 0.6962 MB / 0.5259 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.713e-05/0.1486, allocations: 16.97 kB / 0.526 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.943e-05/0.1486, allocations: 27.44 kB / 0.526 GB, free: 13.55 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1486, allocations: 0 / 0.526 GB, free: 13.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.1712, allocations: 2.39 MB / 0.5283 GB, free: 11.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.55, allocations: 7.266 kB / 0.5283 GB, free: 11.16 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --stepSize=0.000396747 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.024028516956605] Failed to read output from testmodel.py, exit status != 0: ['time', 'firstOrderHold.c', 'firstOrderHold.firstTrigger', 'firstOrderHold.pre_uSample', 'firstOrderHold.tSample', 'firstOrderHold.uSample', 'zeroOrderHold.firstTrigger', 'zeroOrderHold.ySample'] 11.720202542026527 12.032921235 11.891036275 Calling exit ...