Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestState.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.0009536/0.0009536, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008888/0.0008888, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9113/0.9113, allocations: 177.2 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo): time 0.008079/0.008079, allocations: 1.98 MB / 261.2 MB, free: 11.28 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo) 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(ExternalMedia.Test.TestMedium.TestState,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestState,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestState",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 3.938 kB / 384.6 MB, free: 11.96 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.054e-05/2.234e-05, allocations: 10.22 kB / 384.6 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.00603/0.006052, allocations: 7 MB / 391.6 MB, free: 4.918 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 2.517e-05/0.006077, allocations: 31.81 kB / 391.6 MB, free: 4.887 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.683e-05/0.006094, allocations: 0 / 391.6 MB, free: 4.887 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002101/0.006304, allocations: 63.64 kB / 391.7 MB, free: 4.824 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 1.641e-05/0.00632, allocations: 19.78 kB / 391.7 MB, free: 4.805 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001778/0.006498, allocations: 47.62 kB / 391.8 MB, free: 4.758 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 7.844e-05/0.006577, allocations: 47.59 kB / 391.8 MB, free: 4.711 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.271e-05/0.006619, allocations: 7.938 kB / 391.8 MB, free: 4.703 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.371e-05/0.006663, allocations: 15.98 kB / 391.8 MB, free: 4.688 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.536e-05/0.006708, allocations: 15.94 kB / 391.9 MB, free: 4.672 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.006729, allocations: 0 / 391.9 MB, free: 4.672 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001561/0.006885, allocations: 40 kB / 391.9 MB, free: 4.633 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.519e-05/0.0069, allocations: 0 / 391.9 MB, free: 4.633 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.352e-05/0.006923, allocations: 11.94 kB / 391.9 MB, free: 4.621 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001526/0.007076, allocations: 55.88 kB / 392 MB, free: 4.566 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.007078, allocations: 0 / 392 MB, free: 4.566 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.007079, allocations: 0 / 392 MB, free: 4.566 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.007084, allocations: 0 / 392 MB, free: 4.566 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0002783/0.007363, allocations: 270.2 kB / 392.2 MB, free: 4.273 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.007404, allocations: 8.031 kB / 392.2 MB, free: 4.266 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.422e-05/0.007438, allocations: 42.75 kB / 392.3 MB, free: 4.215 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.267e-05/0.007461, allocations: 0.9375 kB / 392.3 MB, free: 4.215 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.752e-05/0.007518, allocations: 113.7 kB / 392.4 MB, free: 4.078 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.007528, allocations: 384 / 392.4 MB, free: 4.078 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.553e-06/0.007535, allocations: 384 / 392.4 MB, free: 4.078 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.007635, allocations: 58.25 kB / 392.5 MB, free: 4.016 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.002e-06/0.007641, allocations: 192 / 392.5 MB, free: 4.016 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.007649, allocations: 3.938 kB / 392.5 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.007656, allocations: 3.984 kB / 392.5 MB, free: 4.008 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.848e-05/0.007684, allocations: 24 kB / 392.5 MB, free: 3.984 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001166/0.007801, allocations: 148.6 kB / 392.6 MB, free: 3.797 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.965e-05/0.007851, allocations: 50.56 kB / 392.7 MB, free: 3.738 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.54e-05/0.007876, allocations: 33.16 kB / 392.7 MB, free: 3.703 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.007905, allocations: 0 / 392.7 MB, free: 3.703 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.007925, allocations: 34.56 kB / 392.7 MB, free: 3.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 6.42e-07/0.007926, allocations: 0 / 392.7 MB, free: 3.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001706/0.008096, allocations: 137.4 kB / 392.9 MB, free: 3.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.008128, allocations: 55.41 kB / 392.9 MB, free: 3.453 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.879e-05/0.008157, allocations: 97.8 kB / 393 MB, free: 3.348 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.115e-06/0.008165, allocations: 25.7 kB / 393.1 MB, free: 3.316 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.937e-05/0.008184, allocations: 80.14 kB / 393.1 MB, free: 3.234 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.176e-05/0.008226, allocations: 55.55 kB / 393.2 MB, free: 3.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.44e-05/0.00825, allocations: 17.7 kB / 393.2 MB, free: 3.156 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.302e-05/0.008323, allocations: 318.8 kB / 393.5 MB, free: 2.836 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.299e-05/0.008346, allocations: 27.98 kB / 393.5 MB, free: 2.809 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.574e-05/0.008362, allocations: 24 kB / 393.6 MB, free: 2.785 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.548e-05/0.008418, allocations: 75.92 kB / 393.6 MB, free: 2.711 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.008419, allocations: 0 / 393.6 MB, free: 2.711 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 6.803e-05/0.008487, allocations: 97.56 kB / 393.7 MB, free: 2.609 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.008501, allocations: 15.52 kB / 393.7 MB, free: 2.598 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.008508, allocations: 3.938 kB / 393.8 MB, free: 2.594 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.008519, allocations: 4 kB / 393.8 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.00852, allocations: 4.062 kB / 393.8 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.008524, allocations: 0 / 393.8 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.11e-05/0.008545, allocations: 3.953 kB / 393.8 MB, free: 2.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.008552, allocations: 4 kB / 393.8 MB, free: 2.578 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 6.318e-05/0.008615, allocations: 109.8 kB / 393.9 MB, free: 2.461 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.437e-06/0.008618, allocations: 0 / 393.9 MB, free: 2.461 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.04e-05/0.008649, allocations: 11.91 kB / 393.9 MB, free: 2.445 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.008653, allocations: 7.984 kB / 393.9 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.008657, allocations: 0 / 393.9 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.008659, allocations: 0 / 393.9 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.682e-05/0.008726, allocations: 144.6 kB / 394 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.008727, allocations: 0 / 394 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.008727, allocations: 0 / 394 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.31e-07/0.008728, allocations: 0 / 394 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.008734, allocations: 3.938 kB / 394 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.008735, allocations: 4 kB / 394 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.008736, allocations: 0 / 394 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.071e-05/0.008826, allocations: 133 kB / 394.2 MB, free: 2.098 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.963e-06/0.008833, allocations: 3.938 kB / 394.2 MB, free: 2.094 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.416e-06/0.008842, allocations: 3.938 kB / 394.2 MB, free: 2.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.265e-05/0.008854, allocations: 4 kB / 394.2 MB, free: 2.086 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.125e-05/0.008866, allocations: 4.031 kB / 394.2 MB, free: 2.082 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-06/0.008867, allocations: 0 / 394.2 MB, free: 2.082 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.789e-05/0.008885, allocations: 75.28 kB / 394.3 MB, free: 2.008 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008885, allocations: 0 / 394.3 MB, free: 2.008 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001295/0.009015, allocations: 12 kB / 394.3 MB, free: 1.996 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0004938/0.009508, allocations: 0.6925 MB / 395 MB, free: 1.285 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.852e-05/0.009597, allocations: 71.8 kB / 395 MB, free: 1.215 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.009599, allocations: 0 / 395 MB, free: 1.215 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.651e-05/0.009615, allocations: 27.98 kB / 395.1 MB, free: 1.188 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.009877, allocations: 44.06 kB / 395.1 MB, free: 1.145 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000381/0.01026, allocations: 230.2 kB / 395.3 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.726e-05/0.01031, allocations: 71.25 kB / 395.4 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.826e-05/0.01032, allocations: 4 kB / 395.4 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.822e-05/0.01035, allocations: 20.48 kB / 395.4 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01035, allocations: 0 / 395.4 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01516/0.02551, allocations: 3.573 MB / 399 MB, free: 13.35 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.589/6.614, allocations: 9.5 kB / 399 MB, free: 13.34 MB / 330.7 MB " [Timeout remaining time 653] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestState_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestState.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.72607138287276] Failed to read output from testmodel.py, exit status != 0: 6.941695091314614 7.101689676 6.942097838 Calling exit ...