Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-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(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",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.001093/0.001093, allocations: 101.9 kB / 16.31 MB, free: 5.879 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.001069/0.001069, allocations: 191.6 kB / 17.24 MB, free: 5.539 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.356/1.356, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05593/0.05593, allocations: 8.099 MB / 299.2 MB, free: 6.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 59.91 kB / 361.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2642, allocations: 51.51 MB / 413.3 MB, free: 25.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors): time 0.002707/0.2669, allocations: 1.77 MB / 415.1 MB, free: 23.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.2684, allocations: 1.477 MB / 416.6 MB, free: 22.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.212e-05/0.2685, allocations: 4 kB / 416.6 MB, free: 22.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003171/0.2688, allocations: 123.3 kB / 416.7 MB, free: 22.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001993/0.269, allocations: 107.2 kB / 416.8 MB, free: 22.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.2702, allocations: 0.9247 MB / 417.7 MB, free: 21.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002298/0.2704, allocations: 230.9 kB / 418 MB, free: 20.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.2706, allocations: 123.7 kB / 418.1 MB, free: 20.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.846e-05/0.2707, allocations: 95.59 kB / 418.2 MB, free: 20.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.2709, allocations: 143.5 kB / 418.3 MB, free: 20.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.127e-05/0.2709, allocations: 28 kB / 418.4 MB, free: 20.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002917/0.2712, allocations: 199.8 kB / 418.6 MB, free: 20.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.595e-05/0.2712, allocations: 59.7 kB / 418.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.684e-05/0.2713, allocations: 123.5 kB / 418.7 MB, free: 20.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000373/0.2717, allocations: 409 kB / 419.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2717, allocations: 0 / 419.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2717, allocations: 3.938 kB / 419.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.2717, allocations: 0 / 419.1 MB, free: 19.75 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001973/0.2737, allocations: 0.7684 MB / 419.9 MB, free: 18.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.2738, allocations: 11.89 kB / 419.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.147e-05/0.2738, allocations: 62.72 kB / 420 MB, free: 18.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.734e-05/0.2739, allocations: 24.66 kB / 420 MB, free: 18.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002108/0.2741, allocations: 243.9 kB / 420.2 MB, free: 18.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.2741, allocations: 20.94 kB / 420.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.81e-05/0.2742, allocations: 24.38 kB / 420.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004216/0.2746, allocations: 309.1 kB / 420.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.2746, allocations: 0 / 420.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.526e-05/0.2747, allocations: 8 kB / 420.6 MB, free: 18.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.2747, allocations: 12 kB / 420.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003593/0.275, allocations: 286.1 kB / 420.9 MB, free: 17.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.2762, allocations: 0.8813 MB / 421.8 MB, free: 16.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004385/0.2766, allocations: 299.3 kB / 422.1 MB, free: 16.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.2768, allocations: 132.8 kB / 422.2 MB, free: 16.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.206e-05/0.2769, allocations: 8 kB / 422.2 MB, free: 16.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.2769, allocations: 30.56 kB / 422.2 MB, free: 16.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.242e-06/0.2769, allocations: 0 / 422.2 MB, free: 16.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.001058/0.278, allocations: 0.5244 MB / 422.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.466e-05/0.278, allocations: 55.41 kB / 422.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.2781, allocations: 167 kB / 423 MB, free: 15.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.2781, allocations: 29.7 kB / 423 MB, free: 15.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.263e-05/0.2782, allocations: 148.4 kB / 423.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.354e-05/0.2783, allocations: 86.73 kB / 423.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.29e-05/0.2783, allocations: 73.45 kB / 423.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.973e-05/0.2784, allocations: 334.8 kB / 423.6 MB, free: 15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.2786, allocations: 128 kB / 423.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.2787, allocations: 132 kB / 423.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003113/0.279, allocations: 289.2 kB / 424.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.2791, allocations: 0 / 424.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005487/0.2796, allocations: 402 kB / 424.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.2796, allocations: 12 kB / 424.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.2796, allocations: 4 kB / 424.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.2799, allocations: 48.81 kB / 424.6 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.2802, allocations: 59.91 kB / 424.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.2812, allocations: 1.535 MB / 426.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.2814, allocations: 27.66 kB / 426.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.2815, allocations: 15.98 kB / 426.2 MB, free: 12.22 MB / 302.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 (35): * Single equations (assignments): 34 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.709e-05/0.2816, allocations: 137.8 kB / 426.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.359e-05/0.2816, allocations: 19.75 kB / 426.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005651/0.2822, allocations: 356.5 kB / 426.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.2822, allocations: 4 kB / 426.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2822, allocations: 4 kB / 426.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2822, allocations: 0 / 426.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002677/0.2825, allocations: 365.2 kB / 427.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2825, allocations: 0 / 427.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.2826, allocations: 35.98 kB / 427.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000187/0.2828, allocations: 60.75 kB / 427.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.2829, allocations: 4 kB / 427.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008826/0.2838, allocations: 1.523 MB / 428.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2838, allocations: 3.938 kB / 428.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004412/0.2842, allocations: 400.7 kB / 429.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.08e-05/0.2843, allocations: 100.8 kB / 429.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.702e-05/0.2843, allocations: 11.94 kB / 429.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.2844, allocations: 0 / 429.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.818e-05/0.2845, allocations: 15.98 kB / 429.3 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.2845, allocations: 7.984 kB / 429.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.635e-05/0.2846, allocations: 138.9 kB / 429.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2846, allocations: 0 / 429.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003332/0.2849, allocations: 79.84 kB / 429.5 MB, free: 8.746 MB / 302.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 (25): * Single equations (assignments): 24 * 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): 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.0007582/0.2857, allocations: 0.9627 MB / 430.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007231/0.2864, allocations: 435 kB / 430.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.2865, allocations: 4 kB / 430.9 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003655/0.2868, allocations: 254.5 kB / 431.1 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.2871, allocations: 11.94 kB / 431.1 MB, free: 7.035 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/0.2897, allocations: 2.52 MB / 433.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001977/0.2899, allocations: 0.7398 MB / 434.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001127/0.29, allocations: 25.53 kB / 434.4 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.988e-05/0.2902, allocations: 71.41 kB / 434.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2902, allocations: 3.938 kB / 434.5 MB, free: 3.559 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02563/0.3158, allocations: 4.8 MB / 439.3 MB, free: 14.85 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.615/9.931, allocations: 9.594 kB / 439.3 MB, free: 14.84 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe 2>&1)