Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.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.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 104.6 kB / 15.98 MB, free: 6.352 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.002096/0.002096, allocations: 195.6 kB / 16.91 MB, free: 6.188 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.331/1.331, allocations: 222.9 MB / 240.6 MB, free: 15.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01166/0.01166, allocations: 2.766 MB / 293.5 MB, free: 12.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 63.91 kB / 354.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2491, allocations: 50.23 MB / 404.8 MB, free: 33.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.006859/0.256, allocations: 8.356 MB / 413.1 MB, free: 24.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005262/0.2613, allocations: 9.389 MB / 422.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.2615, allocations: 0 / 422.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00051/0.262, allocations: 139.2 kB / 422.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002843/0.2623, allocations: 99.41 kB / 422.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003425/0.2658, allocations: 1.336 MB / 424.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000307/0.2661, allocations: 262.7 kB / 424.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.955e-05/0.2661, allocations: 13.69 kB / 424.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004359/0.2705, allocations: 134.1 kB / 424.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.2707, allocations: 83.62 kB / 424.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.429e-05/0.2707, allocations: 11.94 kB / 424.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001578/0.2723, allocations: 475.9 kB / 425.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.646e-05/0.2724, allocations: 27.84 kB / 425.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.747e-05/0.2725, allocations: 87.59 kB / 425.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004996/0.273, allocations: 367.1 kB / 425.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.273, allocations: 3.984 kB / 425.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.273, allocations: 3.938 kB / 425.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.273, allocations: 0 / 425.5 MB, free: 12.32 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007576/0.2738, allocations: 0.5456 MB / 426.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.2738, allocations: 12.03 kB / 426.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/0.2741, allocations: 60.59 kB / 426.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.2743, allocations: 204.2 kB / 426.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.2743, allocations: 4.375 kB / 426.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.885e-05/0.2744, allocations: 12.38 kB / 426.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004409/0.2748, allocations: 247.3 kB / 426.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2748, allocations: 3.938 kB / 426.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.2748, allocations: 8 kB / 426.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.2749, allocations: 11.98 kB / 426.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004071/0.2753, allocations: 200.3 kB / 426.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006486/0.2759, allocations: 0.6823 MB / 427.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005367/0.2765, allocations: 246.5 kB / 427.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.2767, allocations: 152.8 kB / 427.9 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002005/0.2769, allocations: 327.2 kB / 428.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.597e-05/0.2769, allocations: 42.5 kB / 428.3 MB, free: 9.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.934e-06/0.2769, allocations: 0 / 428.3 MB, free: 9.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.002403/0.2793, allocations: 1.23 MB / 429.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.348e-05/0.2794, allocations: 51.41 kB / 429.5 MB, free: 8.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.32e-05/0.2794, allocations: 125.7 kB / 429.7 MB, free: 7.875 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.2795, allocations: 29.7 kB / 429.7 MB, free: 7.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.2795, allocations: 100.9 kB / 429.8 MB, free: 7.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.674e-05/0.2796, allocations: 157.6 kB / 429.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-05/0.2797, allocations: 61.69 kB / 430 MB, free: 7.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.019e-05/0.2797, allocations: 326.8 kB / 430.3 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.2799, allocations: 128.5 kB / 430.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.2802, allocations: 192.4 kB / 430.6 MB, free: 6.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000425/0.2806, allocations: 343.8 kB / 431 MB, free: 6.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2806, allocations: 4 kB / 431 MB, free: 6.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009694/0.2816, allocations: 485.5 kB / 431.5 MB, free: 6.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.2816, allocations: 11.98 kB / 431.5 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.2816, allocations: 4 kB / 431.5 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007453/0.2824, allocations: 156.8 kB / 431.6 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.2825, allocations: 35.86 kB / 431.7 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005034/0.283, allocations: 0.6698 MB / 432.3 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/0.2832, allocations: 12.03 kB / 432.3 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.2832, allocations: 15.94 kB / 432.4 MB, free: 5.086 MB / 302.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: 3 (medium.phaseOutput,medium.state.phase,medium.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,8)} Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.2833, allocations: 133.8 kB / 432.5 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.2833, allocations: 19.72 kB / 432.5 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000829/0.2842, allocations: 0.7148 MB / 433.2 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.2842, allocations: 11.98 kB / 433.2 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.2842, allocations: 3.938 kB / 433.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2842, allocations: 0 / 433.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002954/0.2845, allocations: 395.2 kB / 433.6 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.2845, allocations: 3.984 kB / 433.6 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/0.2848, allocations: 43.97 kB / 433.7 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002128/0.285, allocations: 84.73 kB / 433.8 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.285, allocations: 7.984 kB / 433.8 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.2862, allocations: 2.779 MB / 436.5 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2862, allocations: 7.938 kB / 436.5 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.2873, allocations: 0.8343 MB / 437.4 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.624e-05/0.2873, allocations: 88.95 kB / 437.5 MB, free: 15.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.2874, allocations: 11.92 kB / 437.5 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.2875, allocations: 16.06 kB / 437.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.264e-05/0.2876, allocations: 19.97 kB / 437.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.2876, allocations: 7.984 kB / 437.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.466e-05/0.2877, allocations: 91.33 kB / 437.6 MB, free: 15.44 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2877, allocations: 0 / 437.6 MB, free: 15.44 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003609/0.288, allocations: 67.98 kB / 437.7 MB, free: 15.37 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 2 (medium.state.phase,medium.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003606/0.2884, allocations: 163.7 kB / 437.8 MB, free: 15.22 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008713/0.2893, allocations: 385.4 kB / 438.2 MB, free: 14.85 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2893, allocations: 8 kB / 438.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007226/0.29, allocations: 318.9 kB / 438.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006567/0.2907, allocations: 107.8 kB / 438.6 MB, free: 14.42 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.2919, allocations: 0.7811 MB / 439.4 MB, free: 13.6 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.2922, allocations: 0.7371 MB / 440.2 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.73e-05/0.2923, allocations: 23.44 kB / 440.2 MB, free: 12.81 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2923, allocations: 0 / 440.2 MB, free: 12.81 MB / 318.1 MB Notification: Performance of Templates: time 0.005748/0.2981, allocations: 3.729 MB / 443.9 MB, free: 9.086 MB / 318.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.makefile (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1)