Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",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: 107 kB / 16.27 MB, free: 5.93 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.001302/0.001302, allocations: 190.9 kB / 17.2 MB, free: 5.574 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.253/1.253, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6805/0.6805, allocations: 122.9 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.91 kB / 0.4912 GB, free: 7.328 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2829, allocations: 77.92 MB / 0.5673 GB, free: 32.67 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003514/0.2865, allocations: 2.87 MB / 0.5701 GB, free: 30.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.2886, allocations: 1.807 MB / 0.5718 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.693e-05/0.2887, allocations: 4 kB / 0.5719 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006315/0.2894, allocations: 234.9 kB / 0.5721 GB, free: 29.37 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003281/0.2897, allocations: 206 kB / 0.5723 GB, free: 29.26 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003886/0.2901, allocations: 228 kB / 0.5725 GB, free: 29.15 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002802/0.2904, allocations: 316.5 kB / 0.5728 GB, free: 29.01 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002662/0.2907, allocations: 178.7 kB / 0.573 GB, free: 28.94 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.2908, allocations: 123.2 kB / 0.5731 GB, free: 28.89 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.291, allocations: 148.8 kB / 0.5732 GB, free: 28.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.513e-05/0.2911, allocations: 21.03 kB / 0.5732 GB, free: 28.82 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003564/0.2914, allocations: 278.9 kB / 0.5735 GB, free: 28.73 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.392e-05/0.2915, allocations: 84.12 kB / 0.5736 GB, free: 28.7 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.2916, allocations: 121.6 kB / 0.5737 GB, free: 28.62 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004539/0.2921, allocations: 434.6 kB / 0.5741 GB, free: 28.48 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2921, allocations: 0 / 0.5741 GB, free: 28.48 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2921, allocations: 1.5 kB / 0.5741 GB, free: 28.48 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2921, allocations: 1.156 kB / 0.5741 GB, free: 28.48 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.000651/0.2928, allocations: 0.5429 MB / 0.5747 GB, free: 28 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.898e-05/0.2928, allocations: 10.69 kB / 0.5747 GB, free: 28 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.989e-05/0.2928, allocations: 56.89 kB / 0.5747 GB, free: 27.95 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008292/0.2937, allocations: 110.2 kB / 0.5748 GB, free: 27.94 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002236/0.2939, allocations: 267.7 kB / 0.5751 GB, free: 27.69 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.2939, allocations: 16.62 kB / 0.5751 GB, free: 27.68 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.263e-05/0.294, allocations: 21.33 kB / 0.5751 GB, free: 27.67 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005694/0.2946, allocations: 391 kB / 0.5755 GB, free: 27.47 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.2946, allocations: 5.25 kB / 0.5755 GB, free: 27.46 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.2946, allocations: 14.64 kB / 0.5755 GB, free: 27.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-05/0.2947, allocations: 22.84 kB / 0.5755 GB, free: 27.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000622/0.2953, allocations: 341.1 kB / 0.5759 GB, free: 27.35 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.2968, allocations: 1.738 MB / 0.5775 GB, free: 25.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006085/0.2974, allocations: 330 kB / 0.5779 GB, free: 25.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002259/0.2976, allocations: 148.7 kB / 0.578 GB, free: 25.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001035/0.2977, allocations: 91.06 kB / 0.5781 GB, free: 25.61 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.297e-05/0.2977, allocations: 40.53 kB / 0.5781 GB, free: 25.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 1.332e-06/0.2977, allocations: 0 / 0.5781 GB, free: 25.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=21): time 0.001154/0.2989, allocations: 0.5898 MB / 0.5787 GB, free: 25.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/0.2989, allocations: 85.84 kB / 0.5788 GB, free: 25.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.2992, allocations: 214.8 kB / 0.579 GB, free: 25.03 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.2992, allocations: 27.45 kB / 0.579 GB, free: 25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.5e-05/0.2992, allocations: 165.5 kB / 0.5792 GB, free: 24.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.226e-05/0.2993, allocations: 78.62 kB / 0.5793 GB, free: 24.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.046e-05/0.2994, allocations: 63.83 kB / 0.5793 GB, free: 24.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.528e-05/0.2994, allocations: 328.8 kB / 0.5796 GB, free: 24.44 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.2997, allocations: 142.3 kB / 0.5798 GB, free: 24.39 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002877/0.3, allocations: 217.1 kB / 0.58 GB, free: 24.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000515/0.3005, allocations: 379.9 kB / 0.5803 GB, free: 24.03 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3005, allocations: 1.375 kB / 0.5803 GB, free: 24.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007578/0.3013, allocations: 438.1 kB / 0.5808 GB, free: 23.86 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.3013, allocations: 7.531 kB / 0.5808 GB, free: 23.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.3013, allocations: 2.75 kB / 0.5808 GB, free: 23.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001886/0.3015, allocations: 42.41 kB / 0.5808 GB, free: 23.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.3019, allocations: 74.5 kB / 0.5809 GB, free: 23.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009781/0.3028, allocations: 1.61 MB / 0.5824 GB, free: 22.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002891/0.3031, allocations: 40.56 kB / 0.5825 GB, free: 22.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.3032, allocations: 14.78 kB / 0.5825 GB, free: 22.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002933/0.3035, allocations: 243 kB / 0.5827 GB, free: 22.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002548/0.3037, allocations: 216.9 kB / 0.5829 GB, free: 21.93 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004549/0.3042, allocations: 355.9 kB / 0.5833 GB, free: 21.69 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.463e-06/0.3042, allocations: 0 / 0.5833 GB, free: 21.69 MB / 446.1 MB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007109/0.3049, allocations: 420.1 kB / 0.5837 GB, free: 21.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.246e-06/0.3049, allocations: 7.312 kB / 0.5837 GB, free: 21.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.305, allocations: 3.781 kB / 0.5837 GB, free: 21.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00011/0.3051, allocations: 45.11 kB / 0.5837 GB, free: 21.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.3053, allocations: 71.72 kB / 0.5838 GB, free: 21.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008423/0.3062, allocations: 1.615 MB / 0.5854 GB, free: 19.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.3065, allocations: 34.88 kB / 0.5854 GB, free: 19.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.3065, allocations: 14.81 kB / 0.5854 GB, free: 19.82 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (31): * Single equations (assignments): 30 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.311e-05/0.3066, allocations: 189.1 kB / 0.5856 GB, free: 19.63 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.425e-05/0.3067, allocations: 30.08 kB / 0.5856 GB, free: 19.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005768/0.3072, allocations: 358.2 kB / 0.586 GB, free: 19.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.3073, allocations: 3.531 kB / 0.586 GB, free: 19.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.3073, allocations: 0 / 0.586 GB, free: 19.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.3073, allocations: 3.938 kB / 0.586 GB, free: 19.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.3084, allocations: 0.966 MB / 0.5869 GB, free: 18.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3084, allocations: 5.406 kB / 0.5869 GB, free: 18.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002046/0.3086, allocations: 52.39 kB / 0.587 GB, free: 18.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.853e-05/0.3087, allocations: 43.52 kB / 0.587 GB, free: 18.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.3087, allocations: 11.08 kB / 0.587 GB, free: 18.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006908/0.3094, allocations: 1.504 MB / 0.5885 GB, free: 17.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3094, allocations: 2.812 kB / 0.5885 GB, free: 17.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005348/0.31, allocations: 0.5394 MB / 0.589 GB, free: 16.64 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.872e-05/0.3101, allocations: 125.4 kB / 0.5891 GB, free: 16.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.494e-05/0.3101, allocations: 8.219 kB / 0.5892 GB, free: 16.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.3104, allocations: 27.66 kB / 0.5892 GB, free: 16.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.209e-05/0.3104, allocations: 25.91 kB / 0.5892 GB, free: 16.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.3105, allocations: 6.125 kB / 0.5892 GB, free: 16.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001415/0.3106, allocations: 166 kB / 0.5894 GB, free: 16.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3106, allocations: 1.031 kB / 0.5894 GB, free: 16.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005308/0.3111, allocations: 107.5 kB / 0.5895 GB, free: 16.35 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (21): * Single equations (assignments): 20 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006752/0.3118, allocations: 1.082 MB / 0.5905 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.313, allocations: 0.7681 MB / 0.5913 GB, free: 14.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.313, allocations: 0 / 0.5913 GB, free: 14.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003155/0.3133, allocations: 268.1 kB / 0.5915 GB, free: 14.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.3137, allocations: 36.27 kB / 0.5916 GB, free: 14.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.3168, allocations: 3.014 MB / 0.5945 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001547/0.3169, allocations: 0.7733 MB / 0.5953 GB, free: 11.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002508/0.3172, allocations: 95.64 kB / 0.5954 GB, free: 11.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.3173, allocations: 68.91 kB / 0.5954 GB, free: 11.46 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3173, allocations: 0 / 0.5954 GB, free: 11.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.091/3.408, allocations: 5.688 MB / 0.601 GB, free: 7.031 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.549/11.96, allocations: 12.55 kB / 0.601 GB, free: 7.02 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)