Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.RaPIdExperiments.Line_Aggregation.Reference_system.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/Modelica 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(OpenIPSL.Examples.RaPIdExperiments.Line_Aggregation.Reference_system,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_RaPIdExperiments_Line_Aggregation_Reference_system",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.RaPIdExperiments.Line_Aggregation.Reference_system,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_RaPIdExperiments_Line_Aggregation_Reference_system",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.001172/0.001172, allocations: 108 kB / 15.6 MB, free: 132 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.433/1.433, allocations: 222.9 MB / 239.3 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 200.4 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.57/0.57, allocations: 91.9 MB / 431.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 83.86 kB / 0.502 GB, free: 7.605 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3902/0.392, allocations: 71.26 MB / 0.5716 GB, free: 36.48 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.RaPIdExperiments.Line_Aggregation.Reference_system): time 0.006793/0.3988, allocations: 6.969 MB / 0.5784 GB, free: 32.37 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004593/0.4035, allocations: 2.28 MB / 0.5806 GB, free: 30.78 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008603/0.4044, allocations: 12.16 kB / 0.5806 GB, free: 30.77 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006124/0.405, allocations: 254.8 kB / 0.5809 GB, free: 30.64 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002208/0.4072, allocations: 0.9615 MB / 0.5818 GB, free: 30.02 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001084/0.4083, allocations: 0.5953 MB / 0.5824 GB, free: 29.72 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001731/0.4101, allocations: 1.837 MB / 0.5842 GB, free: 28.85 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003813/0.4105, allocations: 270.6 kB / 0.5844 GB, free: 28.74 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008395/0.4113, allocations: 0.7385 MB / 0.5852 GB, free: 28.38 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008456/0.4122, allocations: 1.006 MB / 0.5861 GB, free: 27.92 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002153/0.4124, allocations: 155.5 kB / 0.5863 GB, free: 27.92 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006378/0.413, allocations: 331.5 kB / 0.5866 GB, free: 27.86 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002454/0.4133, allocations: 392 kB / 0.587 GB, free: 27.62 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005417/0.4138, allocations: 0.7621 MB / 0.5877 GB, free: 27.11 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00166/0.4155, allocations: 1.838 MB / 0.5895 GB, free: 26.31 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4155, allocations: 3.094 kB / 0.5895 GB, free: 26.31 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4155, allocations: 0 / 0.5895 GB, free: 26.31 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.234e-05/0.4156, allocations: 4 kB / 0.5895 GB, free: 26.31 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 175 * Number of variables: 175 Notification: Performance of Generate backend data structure: time 0.01197/0.4275, allocations: 3.326 MB / 0.5928 GB, free: 24.99 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.4276, allocations: 9.844 kB / 0.5928 GB, free: 24.99 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001541/0.4278, allocations: 119.2 kB / 0.5929 GB, free: 24.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00319/0.431, allocations: 0.5225 MB / 0.5934 GB, free: 24.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001641/0.4326, allocations: 0.9761 MB / 0.5944 GB, free: 24.11 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000271/0.4329, allocations: 235.7 kB / 0.5946 GB, free: 23.92 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/0.4331, allocations: 91.23 kB / 0.5947 GB, free: 23.89 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002111/0.4352, allocations: 0.9723 MB / 0.5956 GB, free: 23.54 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.4352, allocations: 0 / 0.5956 GB, free: 23.54 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.743e-05/0.4353, allocations: 30.09 kB / 0.5956 GB, free: 23.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.4354, allocations: 20.72 kB / 0.5957 GB, free: 23.51 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002585/0.4379, allocations: 1.087 MB / 0.5967 GB, free: 23.17 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006811/0.4448, allocations: 3.753 MB / 0.6004 GB, free: 21 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003173/0.448, allocations: 1.677 MB / 0.602 GB, free: 19.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.4496, allocations: 0.7174 MB / 0.6027 GB, free: 19.7 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/0.4498, allocations: 17.41 kB / 0.6027 GB, free: 19.7 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.4498, allocations: 48.34 kB / 0.6028 GB, free: 19.64 MB / 430.1 MB Notification: Performance of pre-optimization done (n=103): time 3.847e-06/0.4498, allocations: 1.062 kB / 0.6028 GB, free: 19.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=103): time 0.02311/0.4729, allocations: 5.592 MB / 0.6083 GB, free: 18.46 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.473, allocations: 66.62 kB / 0.6083 GB, free: 18.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002178/0.4752, allocations: 1.277 MB / 0.6096 GB, free: 17.85 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003218/0.4756, allocations: 51.3 kB / 0.6096 GB, free: 17.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003417/0.4759, allocations: 471.2 kB / 0.6101 GB, free: 17.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000417/0.4763, allocations: 394.6 kB / 0.6104 GB, free: 17.13 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006801/0.477, allocations: 380.6 kB / 0.6108 GB, free: 16.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.86e-05/0.4771, allocations: 307.3 kB / 0.6111 GB, free: 16.65 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00207/0.4791, allocations: 0.9415 MB / 0.612 GB, free: 16.29 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002263/0.4814, allocations: 1.11 MB / 0.6131 GB, free: 15.82 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003944/0.4854, allocations: 1.936 MB / 0.615 GB, free: 14.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.4854, allocations: 1.766 kB / 0.615 GB, free: 14.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=256) (initialization): time 0.007028/0.4924, allocations: 3.042 MB / 0.618 GB, free: 13.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/0.4925, allocations: 8.125 kB / 0.618 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.4925, allocations: 1.031 kB / 0.618 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008726/0.5013, allocations: 2.284 MB / 0.6202 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001823/0.5031, allocations: 355.5 kB / 0.6205 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004847/0.508, allocations: 2.277 MB / 0.6228 GB, free: 9.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002752/0.5108, allocations: 218.3 kB / 0.623 GB, free: 9.441 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003888/0.5112, allocations: 67.92 kB / 0.623 GB, free: 9.375 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (204): * Single equations (assignments): 203 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(24,29)} Notification: Performance of prepare postOptimizeDAE: time 0.0008237/0.512, allocations: 269.5 kB / 0.6233 GB, free: 9.102 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005146/0.5125, allocations: 134.3 kB / 0.6234 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01013/0.5227, allocations: 3.346 MB / 0.6267 GB, free: 5.605 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.827e-05/0.5227, allocations: 11.98 kB / 0.6267 GB, free: 5.594 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.5227, allocations: 0 / 0.6267 GB, free: 5.594 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.081e-05/0.5228, allocations: 11.97 kB / 0.6267 GB, free: 5.582 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/0.5355, allocations: 5.031 MB / 0.6316 GB, free: 428 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.5356, allocations: 0 / 0.6316 GB, free: 428 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007764/0.5364, allocations: 131.8 kB / 0.6317 GB, free: 296 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005388/0.5418, allocations: 1.437 MB / 0.6332 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001588/0.542, allocations: 35.92 kB / 0.6332 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01993/0.5619, allocations: 7.829 MB / 0.6408 GB, free: 6.832 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.5619, allocations: 0 / 0.6408 GB, free: 6.832 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01323/0.5752, allocations: 4.237 MB / 0.645 GB, free: 2.574 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008461/0.5761, allocations: 255 kB / 0.6452 GB, free: 2.305 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005646/0.5766, allocations: 19.94 kB / 0.6452 GB, free: 2.285 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00171/0.5784, allocations: 103.8 kB / 0.6453 GB, free: 2.184 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006543/0.579, allocations: 180.7 kB / 0.6455 GB, free: 2.008 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.5792, allocations: 27.98 kB / 0.6455 GB, free: 1.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001744/0.5809, allocations: 0.8473 MB / 0.6464 GB, free: 1.129 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.581, allocations: 0 / 0.6464 GB, free: 1.129 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002325/0.5833, allocations: 475.7 kB / 0.6468 GB, free: 0.6641 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (gENROE.w,gENROE.delta,gENROE.Epd,gENROE.Epq,gENROE.PSIkd,gENROE.PSIkq,gENROE1.w,gENROE1.delta,gENROE1.Epd,gENROE1.Epq,gENROE1.PSIkd,gENROE1.PSIkq) * 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 (71): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(14,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01291/0.5962, allocations: 4.715 MB / 0.6514 GB, free: 11.92 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008137/0.6044, allocations: 2.488 MB / 0.6538 GB, free: 9.434 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.6044, allocations: 0 / 0.6538 GB, free: 9.434 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004248/0.6087, allocations: 1.356 MB / 0.6552 GB, free: 8.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001588/0.6103, allocations: 108.7 kB / 0.6553 GB, free: 7.961 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03177/0.6421, allocations: 15.53 MB / 0.6704 GB, free: 7.945 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009301/0.643, allocations: 1.116 MB / 0.6715 GB, free: 6.797 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006889/0.6438, allocations: 124.7 kB / 0.6717 GB, free: 6.672 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009153/0.6447, allocations: 0.4954 MB / 0.6721 GB, free: 6.176 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6447, allocations: 0 / 0.6721 GB, free: 6.176 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07633/0.721, allocations: 35.78 MB / 0.7071 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.94, allocations: 19.91 kB / 0.7071 GB, free: 2.594 MB / 0.4981 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.RaPIdExperiments.Line_Aggregation.Reference_system.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.RaPIdExperiments.Line_Aggregation.Reference_system.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.RaPIdExperiments.Line_Aggregation.Reference_system.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.RaPIdExperiments.Line_Aggregation.Reference_system.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.RaPIdExperiments.Line_Aggregation.Reference_system_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_dev_OpenIPSL_Examples_RaPIdExperiments_Line_Aggregation_Reference_system.fmu > OpenIPSL_dev_OpenIPSL.Examples.RaPIdExperiments.Line_Aggregation.Reference_system.pipe 2>&1)