Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.SSVTest.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/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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: "" <> buildModelFMU(ExternData.Examples.SSVTest,fileNamePrefix="ExternData_ExternData_Examples_SSVTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.SSVTest,fileNamePrefix="ExternData_ExternData_Examples_SSVTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 194 kB / 16.53 MB, free: 6.391 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1462/0.1462, allocations: 2.925 MB / 293.3 MB, free: 3.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 59.91 kB / 354.8 MB, free: 3.629 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08628/0.08759, allocations: 50.36 MB / 405.1 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.SSVTest): time 0.003236/0.09086, allocations: 1.522 MB / 406.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.09202, allocations: 0.7932 MB / 407.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.843e-05/0.0921, allocations: 4 kB / 407.4 MB, free: 14.89 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:165:3-189:14:writable] Warning: Pure function 'ExternData.SSVFile' contains a call to impure function 'ExternData.Types.ExternXML2File.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003585/0.09246, allocations: 35.84 kB / 407.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002346/0.09271, allocations: 39.77 kB / 407.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.219e-05/0.09275, allocations: 4 kB / 407.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.87e-05/0.09283, allocations: 27.92 kB / 407.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.003e-05/0.09293, allocations: 4 kB / 407.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.351e-05/0.093, allocations: 19.92 kB / 407.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.09314, allocations: 15.94 kB / 407.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.09316, allocations: 4 kB / 407.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.989e-05/0.09327, allocations: 35.91 kB / 407.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.594e-05/0.09329, allocations: 3.984 kB / 407.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.522e-05/0.09333, allocations: 15.94 kB / 407.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.09347, allocations: 48.16 kB / 407.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.09348, allocations: 0 / 407.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.09349, allocations: 0 / 407.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.0935, allocations: 3.938 kB / 407.7 MB, free: 14.64 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.00043/0.09394, allocations: 355.3 kB / 408 MB, free: 14.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.09398, allocations: 11.89 kB / 408 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.288e-05/0.09402, allocations: 30.75 kB / 408.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.939e-05/0.09406, allocations: 8.844 kB / 408.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.0942, allocations: 172.3 kB / 408.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.09422, allocations: 384 / 408.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.983e-06/0.09423, allocations: 4.312 kB / 408.3 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.09435, allocations: 46.25 kB / 408.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.09437, allocations: 3.938 kB / 408.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.09438, allocations: 0 / 408.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.09439, allocations: 3.984 kB / 408.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.496e-05/0.09448, allocations: 19.98 kB / 408.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003008/0.09479, allocations: 248.9 kB / 408.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.682e-05/0.09488, allocations: 34.45 kB / 408.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.743e-05/0.09493, allocations: 16.91 kB / 408.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.273e-06/0.09495, allocations: 0 / 408.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.09497, allocations: 34.56 kB / 408.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.203e-06/0.09498, allocations: 4 kB / 408.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002123/0.0952, allocations: 57.67 kB / 408.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.09526, allocations: 51.41 kB / 408.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.09536, allocations: 113.8 kB / 408.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.09539, allocations: 29.7 kB / 408.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.404e-05/0.09544, allocations: 80.14 kB / 409 MB, free: 13.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.537e-05/0.09546, allocations: 7.906 kB / 409 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-05/0.0955, allocations: 17.84 kB / 409 MB, free: 13.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.09561, allocations: 318.8 kB / 409.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.171e-05/0.09566, allocations: 8 kB / 409.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.112e-05/0.0957, allocations: 7.984 kB / 409.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.311e-05/0.09578, allocations: 24.84 kB / 409.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.09579, allocations: 3.938 kB / 409.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001261/0.09592, allocations: 57.66 kB / 409.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.09594, allocations: 4 kB / 409.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.09595, allocations: 3.938 kB / 409.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.09597, allocations: 0 / 409.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.566e-05/0.09604, allocations: 4 kB / 409.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.09605, allocations: 0 / 409.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.266e-05/0.09609, allocations: 7.938 kB / 409.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-06/0.09611, allocations: 3.984 kB / 409.4 MB, free: 12.64 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 (2): * Single equations (assignments): 2 * 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 6.992e-05/0.09618, allocations: 113.8 kB / 409.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.09622, allocations: 4 kB / 409.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.31e-05/0.09625, allocations: 7.531 kB / 409.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.09626, allocations: 3.938 kB / 409.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.09627, allocations: 0 / 409.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.09628, allocations: 4 kB / 409.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000221/0.0965, allocations: 165.6 kB / 409.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.09652, allocations: 0 / 409.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.658e-05/0.09656, allocations: 4 kB / 409.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.09657, allocations: 0 / 409.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.09658, allocations: 4 kB / 409.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.09659, allocations: 4 kB / 409.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.0966, allocations: 4 kB / 409.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001885/0.09679, allocations: 163.3 kB / 409.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.751e-05/0.09684, allocations: 77.11 kB / 410 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.09686, allocations: 0 / 410 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.865e-05/0.09692, allocations: 0 / 410 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.851e-05/0.09697, allocations: 8.031 kB / 410 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.09697, allocations: 0 / 410 MB, free: 12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.52e-05/0.09703, allocations: 91.27 kB / 410.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09704, allocations: 0 / 410.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002366/0.09728, allocations: 12 kB / 410.1 MB, free: 11.9 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 (2): * Single equations (assignments): 2 * 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 0.000809/0.0981, allocations: 0.7738 MB / 410.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001326/0.09824, allocations: 27.92 kB / 410.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.09825, allocations: 0 / 410.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.905e-05/0.0983, allocations: 4 kB / 410.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.09857, allocations: 23.86 kB / 410.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.09982, allocations: 1.234 MB / 412.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.1001, allocations: 0.6805 MB / 412.8 MB, free: 9.066 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.673e-05/0.1001, allocations: 4 kB / 412.8 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.35e-05/0.1002, allocations: 19.42 kB / 412.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1002, allocations: 0 / 412.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01766/0.1178, allocations: 1.714 MB / 414.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.345/7.463, allocations: 11.38 kB / 414.6 MB, free: 7.363 MB / 350.1 MB (rm -f ExternData_ExternData.Examples.SSVTest.pipe ; mkfifo ExternData_ExternData.Examples.SSVTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.SSVTest.pipe >> ../files/ExternData_ExternData.Examples.SSVTest.sim & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.SSVTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ExternData_ExternData_Examples_SSVTest.fmu > ExternData_ExternData.Examples.SSVTest.pipe 2>&1)