Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo) 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: translateModel(ExternalMedia.Test.TestMedium.TestConstants,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants") translateModel(ExternalMedia.Test.TestMedium.TestConstants,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 91.06 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 223.3 MB / 240 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1967/0.1967, allocations: 2.782 MB / 293.9 MB, free: 4.258 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003738/0.0003739, allocations: 8 kB / 355.6 MB, free: 4.309 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1367, allocations: 51.25 MB / 406.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.008156/0.1449, allocations: 6.624 MB / 413.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 8.396e-06/0.145, allocations: 0 / 413.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.958e-05/0.145, allocations: 0 / 413.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.864e-05/0.145, allocations: 4 kB / 413.5 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003158/0.1454, allocations: 103.4 kB / 413.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.584e-06/0.1454, allocations: 0 / 413.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.125e-05/0.1454, allocations: 0 / 413.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.013e-05/0.1455, allocations: 4 kB / 413.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009985/0.1555, allocations: 27.84 kB / 413.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.76e-05/0.1555, allocations: 0 / 413.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.1556, allocations: 3.938 kB / 413.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.995e-06/0.1556, allocations: 4 kB / 413.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.005e-06/0.1556, allocations: 0 / 413.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.136e-05/0.1556, allocations: 25.7 kB / 413.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.227e-05/0.1557, allocations: 3.984 kB / 413.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.719e-06/0.1557, allocations: 0 / 413.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1557, allocations: 0 / 413.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.1557, allocations: 0 / 413.7 MB, free: 10.18 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003496/0.1561, allocations: 311.4 kB / 414 MB, free: 9.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.1561, allocations: 8.031 kB / 414 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.924e-05/0.1562, allocations: 0 / 414 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.1563, allocations: 163 kB / 414.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.1564, allocations: 0 / 414.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.267e-05/0.1564, allocations: 0 / 414.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.1565, allocations: 37.69 kB / 414.2 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1565, allocations: 7.922 kB / 414.2 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.1565, allocations: 3.953 kB / 414.2 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.1566, allocations: 4 kB / 414.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.388e-05/0.1566, allocations: 0 / 414.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004793/0.1571, allocations: 375.4 kB / 414.6 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.1572, allocations: 173.1 kB / 414.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.899e-05/0.1573, allocations: 80.14 kB / 414.8 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.355e-05/0.1573, allocations: 87.3 kB / 414.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.106e-05/0.1574, allocations: 109.8 kB / 415 MB, free: 8.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.462e-06/0.1574, allocations: 0 / 415 MB, free: 8.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.471e-05/0.1575, allocations: 29.64 kB / 415 MB, free: 8.641 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.42e-05/0.1576, allocations: 126.7 kB / 415.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.1577, allocations: 97.86 kB / 415.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.1577, allocations: 29.83 kB / 415.3 MB, free: 8.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.564e-05/0.1578, allocations: 80.14 kB / 415.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.485e-06/0.1578, allocations: 0 / 415.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.1578, allocations: 0 / 415.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.158, allocations: 310.8 kB / 415.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.785e-06/0.158, allocations: 0 / 415.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-06/0.158, allocations: 7.984 kB / 415.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.043e-05/0.158, allocations: 0 / 415.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.158, allocations: 0 / 415.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001013/0.1581, allocations: 33.77 kB / 415.7 MB, free: 7.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.1582, allocations: 11.95 kB / 415.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1582, allocations: 0 / 415.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1582, allocations: 0 / 415.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.632e-05/0.1582, allocations: 3.938 kB / 415.7 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.1583, allocations: 3.938 kB / 415.7 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.76e-05/0.1583, allocations: 8 kB / 415.7 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.1583, allocations: 0 / 415.7 MB, free: 7.895 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001187/0.1584, allocations: 189.1 kB / 415.9 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.841e-05/0.1585, allocations: 101 kB / 416 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.703e-05/0.1586, allocations: 116 kB / 416.1 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.18e-05/0.1586, allocations: 176.3 kB / 416.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-05/0.1587, allocations: 176.3 kB / 416.5 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001187/0.1589, allocations: 188.2 kB / 416.6 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.1592, allocations: 409.2 kB / 417 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.68e-05/0.1593, allocations: 108.9 kB / 417.1 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.67e-05/0.1593, allocations: 101 kB / 417.2 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001113/0.1594, allocations: 180.2 kB / 417.4 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.1595, allocations: 188.2 kB / 417.6 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.15e-05/0.1596, allocations: 180.2 kB / 417.8 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.96e-05/0.1597, allocations: 184.2 kB / 418 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.1599, allocations: 303.8 kB / 418.3 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.16, allocations: 182 kB / 418.4 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/0.1601, allocations: 180.3 kB / 418.6 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.079e-05/0.1602, allocations: 108.9 kB / 418.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.1604, allocations: 184.2 kB / 418.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.537e-05/0.1604, allocations: 101 kB / 419 MB, free: 4.391 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.995e-05/0.1605, allocations: 79.28 kB / 419.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.214e-06/0.1605, allocations: 0 / 419.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002599/0.1607, allocations: 7.938 kB / 419.1 MB, free: 4.305 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001591/0.1609, allocations: 170.6 kB / 419.3 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.329e-05/0.161, allocations: 0 / 419.3 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.161, allocations: 0 / 419.3 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.482e-06/0.161, allocations: 0 / 419.3 MB, free: 4.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.1615, allocations: 0.5185 MB / 419.8 MB, free: 3.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002973/0.1618, allocations: 164 kB / 419.9 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.1621, allocations: 0.6809 MB / 420.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.814e-05/0.1621, allocations: 0 / 420.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.885e-05/0.1621, allocations: 7.438 kB / 420.6 MB, free: 2.699 MB / 350.1 MB Notification: Performance of SimCode: time 3.516e-06/0.1621, allocations: 0 / 420.6 MB, free: 2.699 MB / 350.1 MB Notification: Performance of Templates: time 0.002007/0.1642, allocations: 160.5 kB / 420.8 MB, free: 2.543 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.makefile Environment - environmentSimulation: (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1) Environment - environmentSimulation: