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.005344/0.005344, allocations: 101.5 kB / 15.73 MB, free: 6.047 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.001143/0.001143, allocations: 188.6 kB / 16.67 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1337/0.1337, allocations: 2.764 MB / 293.3 MB, free: 3.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 67.89 kB / 405.9 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2382, allocations: 50.24 MB / 456.1 MB, free: 21.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.00536/0.2436, allocations: 7.317 MB / 463.4 MB, free: 16.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 5.801e-06/0.2436, allocations: 3.938 kB / 463.4 MB, free: 16.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.524e-05/0.2436, allocations: 0 / 463.4 MB, free: 16.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.24e-05/0.2437, allocations: 0.8438 kB / 463.4 MB, free: 16.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002724/0.2439, allocations: 108.9 kB / 463.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.336e-06/0.244, allocations: 0 / 463.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.307e-05/0.244, allocations: 7.734 kB / 463.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.551e-05/0.244, allocations: 11.73 kB / 463.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008967/0.253, allocations: 26.02 kB / 463.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.209e-05/0.253, allocations: 7.219 kB / 463.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.72e-06/0.2531, allocations: 0 / 463.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.536e-06/0.2531, allocations: 0 / 463.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.951e-06/0.2531, allocations: 0 / 463.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.283e-05/0.2531, allocations: 0 / 463.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.531e-05/0.2531, allocations: 11.02 kB / 463.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.2531, allocations: 0 / 463.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2531, allocations: 0.6562 kB / 463.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.2532, allocations: 0 / 463.6 MB, free: 15.93 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.0001828/0.2533, allocations: 316.6 kB / 463.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.2534, allocations: 9.656 kB / 463.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.304e-05/0.2534, allocations: 0.9375 kB / 463.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.082e-05/0.2535, allocations: 161.4 kB / 464.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-06/0.2535, allocations: 384 / 464.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.2535, allocations: 4.094 kB / 464.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.583e-05/0.2536, allocations: 30.48 kB / 464.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.6e-06/0.2536, allocations: 0 / 464.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.544e-06/0.2536, allocations: 0 / 464.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.2536, allocations: 4 kB / 464.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.646e-05/0.2536, allocations: 11.55 kB / 464.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001989/0.2538, allocations: 384.9 kB / 464.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.566e-05/0.2539, allocations: 165.2 kB / 464.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.874e-05/0.2539, allocations: 88.66 kB / 464.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.2539, allocations: 79.28 kB / 464.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.2539, allocations: 109.6 kB / 464.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.092e-06/0.254, allocations: 3.938 kB / 464.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 5.731e-05/0.254, allocations: 30.25 kB / 465 MB, free: 14.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.2541, allocations: 127.2 kB / 465.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.888e-05/0.2541, allocations: 101.9 kB / 465.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.189e-06/0.2541, allocations: 25.7 kB / 465.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.915e-05/0.2542, allocations: 80.14 kB / 465.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.444e-06/0.2542, allocations: 0.5625 kB / 465.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.246e-05/0.2542, allocations: 16.75 kB / 465.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.637e-05/0.2542, allocations: 315.4 kB / 465.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.813e-06/0.2542, allocations: 0.6094 kB / 465.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.729e-06/0.2542, allocations: 3 kB / 465.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.068e-05/0.2543, allocations: 13.69 kB / 465.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.2543, allocations: 0 / 465.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.151e-05/0.2544, allocations: 32.38 kB / 465.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.2544, allocations: 6.641 kB / 465.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.2544, allocations: 0 / 465.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.2544, allocations: 0.6094 kB / 465.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.609e-05/0.2544, allocations: 3 kB / 465.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.2545, allocations: 0.75 kB / 465.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.047e-05/0.2545, allocations: 0 / 465.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-06/0.2545, allocations: 4 kB / 465.7 MB, free: 13.68 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.074e-05/0.2545, allocations: 193.8 kB / 465.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.544e-05/0.2546, allocations: 108.6 kB / 466 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.318e-05/0.2546, allocations: 109.5 kB / 466.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-05/0.2546, allocations: 180 kB / 466.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.738e-05/0.2547, allocations: 181 kB / 466.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.668e-05/0.2547, allocations: 184.9 kB / 466.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.2548, allocations: 406.8 kB / 467 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.742e-05/0.2549, allocations: 105.6 kB / 467.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.727e-05/0.2549, allocations: 101.7 kB / 467.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.23e-05/0.2549, allocations: 187.9 kB / 467.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.2549, allocations: 184.3 kB / 467.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.808e-05/0.255, allocations: 181.4 kB / 467.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.651e-05/0.255, allocations: 179.9 kB / 467.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.991e-05/0.2551, allocations: 312.5 kB / 468.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.495e-05/0.2551, allocations: 179.3 kB / 468.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.741e-05/0.2552, allocations: 188.6 kB / 468.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.348e-05/0.2552, allocations: 101.9 kB / 468.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.606e-05/0.2553, allocations: 180.2 kB / 468.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.2553, allocations: 105 kB / 469 MB, free: 10.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.718e-05/0.2553, allocations: 75.28 kB / 469.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2553, allocations: 0 / 469.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002173/0.2555, allocations: 5.125 kB / 469.1 MB, free: 10.12 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.127e-05/0.2556, allocations: 174.3 kB / 469.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.022e-05/0.2557, allocations: 3.844 kB / 469.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2557, allocations: 0 / 469.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.465e-06/0.2557, allocations: 3.938 kB / 469.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.256, allocations: 464 kB / 469.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001806/0.2561, allocations: 155.4 kB / 469.8 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001041/0.2563, allocations: 0.6732 MB / 470.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.589e-05/0.2563, allocations: 0 / 470.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.42e-05/0.2563, allocations: 7.438 kB / 470.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.2563, allocations: 0 / 470.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of Templates: time 0.001684/0.258, allocations: 164.6 kB / 470.7 MB, free: 8.574 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.makefile (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)